2021-08-23 23:17:20 +00:00
|
|
|
set rtp +=.
|
|
|
|
set rtp +=../plenary.nvim/
|
2021-08-24 07:14:43 +00:00
|
|
|
set rtp +=../nvim-treesitter/
|
2021-08-24 07:31:09 +00:00
|
|
|
set rtp +=../nvim-lspconfig/
|
2021-08-24 07:14:43 +00:00
|
|
|
set rtp +=../guihua.lua/
|
|
|
|
set rtp +=../navigator.lua/
|
2021-08-23 23:17:20 +00:00
|
|
|
|
|
|
|
runtime! plugin/plenary.vim
|
2021-08-24 07:14:43 +00:00
|
|
|
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")
|
2021-08-24 07:14:43 +00:00
|
|
|
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
|
|
|
|
},
|
|
|
|
}
|
2021-08-24 11:18:00 +00:00
|
|
|
|
|
|
|
-- for testing load gopls ahead
|
|
|
|
|
|
|
|
require'lspconfig'.gopls.setup{}
|
|
|
|
|
2021-08-24 07:14:43 +00:00
|
|
|
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
|