nvim: Setup tree-sitter
Anirudh Oppiliappan x@icyphox.sh
Sat, 06 Mar 2021 14:13:29 +0530
3 files changed,
17 insertions(+),
2 deletions(-)
M
config/nvim/lua/maps.lua
→
config/nvim/lua/maps.lua
@@ -82,6 +82,7 @@ " Avoid showing message extra message when using completion
set shortmess+=c ]], false) -map('i', '<Tab>', '<C-n>', options) +-- complete from buffer +map('i', '<expr><Tab>', '<C-n>', options) return M
M
config/nvim/lua/statusline.lua
→
config/nvim/lua/statusline.lua
@@ -40,4 +40,4 @@ '%#PrimaryBlock#',
'%{&filetype}', } -vim.wo.statusline = table.concat(stl) +vim.o.statusline = table.concat(stl)
A
config/nvim/lua/treesitter.lua
@@ -0,0 +1,14 @@
+require('nvim-treesitter.configs').setup { + highlight = { + enable = true, + }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "gnn", + node_incremental = "grn", + scope_incremental = "grc", + node_decremental = "grm", + }, + }, +}