navigator.lua/tests/minimal.vim

49 lines
1.2 KiB
VimL
Raw Normal View History

2021-08-23 23:17:20 +00:00
set rtp +=.
set rtp +=../plenary.nvim/
set rtp +=../nvim-treesitter/
2021-08-24 07:31:09 +00:00
set rtp +=../nvim-lspconfig/
set rtp +=../guihua.lua/
set rtp +=../navigator.lua/
2021-08-23 23:17:20 +00:00
runtime! plugin/plenary.vim
runtime! plugin/nvim-treesitter.vim
runtime! plugin/guihua.vim
runtime! plugin/navigator.vim
2021-08-24 07:31:09 +00:00
runtime! plugin/nvim-lspconfig.vim
2021-08-23 23:17:20 +00:00
set noswapfile
set nobackup
filetype indent off
set nowritebackup
set noautoindent
set nocindent
set nosmartindent
set indentexpr=
lua << EOF
_G.test_rename = true
_G.test_close = true
require("plenary/busted")
require'nvim-treesitter.configs'.setup {
ensure_installed = {"go"}, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
highlight = {
enable = true, -- false will disable the whole extension
},
}
-- for testing load gopls ahead
require'lspconfig'.gopls.setup{}
require'navigator'.setup({
debug = false, -- log output, set to true and log path: ~/.local/share/nvim/gh.log
code_action_icon = " ",
width = 0.75, -- max width ratio (number of cols for the floating window) / (window width)
height = 0.3, -- max list window height, 0.3 by default
preview_height = 0.35, -- max height of preview windows
border = 'none',
})
2021-08-23 23:17:20 +00:00
EOF