Compare commits

...

2 Commits

Author SHA1 Message Date
Rob Watson a49eeb6bd0 nvimrc: Add nvim-treesitter-context 2022-08-25 04:50:22 +02:00
Rob Watson a4f368a306 nvimrc: Disable treesitter LSP fallback 2022-07-14 17:27:05 +02:00
1 changed files with 8 additions and 1 deletions

9
nvimrc
View File

@ -528,6 +528,7 @@ let g:vimsyn_embed= 'lPr'
packadd! nvim-treesitter " https://github.com/nvim-treesitter/nvim-treesitter.git
packadd! nvim-treesitter-textobjects " https://github.com/nvim-treesitter/nvim-treesitter-textobjects.git
packadd! nvim-treesitter-refactor " https://github.com/nvim-treesitter/nvim-treesitter-refactor.git
packadd! nvim-treesitter-context " https://github.com/nvim-treesitter/nvim-treesitter-context.git
packadd! playground " https://github.com/nvim-treesitter/playground.git
lua <<EOF
@ -595,7 +596,7 @@ require 'nvim-treesitter.configs'.setup {
navigation = {
enable = true,
keymaps = {
goto_definition_lsp_fallback = "gd",
-- goto_definition_lsp_fallback = "gd",
goto_next_usage = "]r",
goto_previous_usage = "[r",
},
@ -622,6 +623,12 @@ require 'nvim-treesitter.configs'.setup {
}
EOF
lua <<EOF
require'treesitter-context'.setup{
enable = true,
}
EOF
" nvim-cmp:
packadd! nvim-cmp " https://github.com/hrsh7th/nvim-cmp.git