Add treesitter and incremental selection to vscode
This commit is contained in:
parent
2f0c183557
commit
7e31e79d6a
|
@ -11,8 +11,30 @@ if not vim.loop.fs_stat(lazypath) then
|
|||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
require('lazy').setup({
|
||||
{
|
||||
'nvim-treesitter',
|
||||
dependencies = {
|
||||
'nvim-treesitter-textobjects',
|
||||
},
|
||||
build = ':TSUpdate',
|
||||
},
|
||||
{
|
||||
'kylechui/nvim-surround',
|
||||
opts = { config = {} }
|
||||
}
|
||||
})
|
||||
|
||||
require('nvim-treesitter.configs').setup({
|
||||
ensure_installed = { 'go', 'python', 'rust', 'javascript', 'typescript' },
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = '<CR>',
|
||||
node_incremental = '<CR>',
|
||||
scope_incremental = '<TAB>',
|
||||
node_decremental = '<BS>',
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue