Treesitter updates
This commit is contained in:
parent
a237c41cd2
commit
b1ad92e22e
1 changed files with 13 additions and 4 deletions
17
vim/vimrc
17
vim/vimrc
|
@ -226,15 +226,24 @@ require 'nvim-treesitter.configs'.setup {
|
|||
},
|
||||
smart_rename = {
|
||||
enable = true,
|
||||
smart_rename = "<Leader>r", -- mapping to rename reference under cursor
|
||||
keymaps = {
|
||||
smart_rename = "<Leader>r", -- mapping to rename reference under cursor
|
||||
}
|
||||
},
|
||||
navigation = {
|
||||
enable = true,
|
||||
goto_definition = "<Leader>tg", -- mapping to go to definition of symbol under cursor
|
||||
list_definitions = "<Leader>ta" -- mapping to list all definitions in current file
|
||||
keymaps = {
|
||||
goto_definition = "<Leader>tg", -- mapping to go to definition of symbol under cursor
|
||||
list_definitions = "<Leader>ta" -- mapping to list all definitions in current file
|
||||
}
|
||||
}
|
||||
},
|
||||
ensure_installed = {'python'}
|
||||
ensure_installed = {'python', 'yaml', 'rust', 'ocaml'}
|
||||
}
|
||||
EOF
|
||||
endif
|
||||
|
||||
set foldmethod=expr
|
||||
set foldexpr=nvim_treesitter#foldexpr()
|
||||
|
||||
" nnoremap <silent> <leader>tsr :w | e | TSBufEnable('highlight')<CR>
|
||||
|
|
Loading…
Add table
Reference in a new issue