Treesitter updates
This commit is contained in:
parent
a237c41cd2
commit
b1ad92e22e
1 changed files with 13 additions and 4 deletions
11
vim/vimrc
11
vim/vimrc
|
@ -226,15 +226,24 @@ require 'nvim-treesitter.configs'.setup {
|
||||||
},
|
},
|
||||||
smart_rename = {
|
smart_rename = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
smart_rename = "<Leader>r", -- mapping to rename reference under cursor
|
smart_rename = "<Leader>r", -- mapping to rename reference under cursor
|
||||||
|
}
|
||||||
},
|
},
|
||||||
navigation = {
|
navigation = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
goto_definition = "<Leader>tg", -- mapping to go to definition of symbol under cursor
|
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
|
list_definitions = "<Leader>ta" -- mapping to list all definitions in current file
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
ensure_installed = {'python'}
|
ensure_installed = {'python', 'yaml', 'rust', 'ocaml'}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
endif
|
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