all repos — dotfiles @ 7c2bd86a4dfe09222865e5e11f5790d211bc13c5

my *nix dotfiles

nvim: Setup tree-sitter
Anirudh Oppiliappan x@icyphox.sh
Sat, 06 Mar 2021 14:13:29 +0530
commit

7c2bd86a4dfe09222865e5e11f5790d211bc13c5

parent

2c00620ef710e80a5702621b075274fdfd3a6e2b

3 files changed, 17 insertions(+), 2 deletions(-)

jump to
M config/nvim/lua/maps.luaconfig/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.luaconfig/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", + }, + }, +}