Add treewalker
This commit is contained in:
parent
ff774b41f7
commit
152f103746
17
init.lua
17
init.lua
|
@ -504,6 +504,7 @@ require('lazy').setup({
|
|||
-- your configuration comes here
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
-- Main LSP Configuration
|
||||
'neovim/nvim-lspconfig',
|
||||
|
@ -986,7 +987,21 @@ require('lazy').setup({
|
|||
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||
},
|
||||
|
||||
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||
-- Treewalker for nvim-treesitter based movements
|
||||
{
|
||||
'aaronik/treewalker.nvim',
|
||||
opts = {
|
||||
highlight = true, -- default is false
|
||||
},
|
||||
config = function()
|
||||
vim.api.nvim_set_keymap('n', '<C-j>', ':Treewalker Down<CR>', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-k>', ':Treewalker Up<CR>', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-h>', ':Treewalker Left<CR>', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-l>', ':Treewalker Right<CR>', { noremap = true })
|
||||
end,
|
||||
},
|
||||
|
||||
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||
-- place them in the correct locations.
|
||||
|
||||
|
|
Loading…
Reference in New Issue