Skip to content

Commit

Permalink
feat(nvim): treesitter go brrrrrrrrrrrrrrrrrrrrr
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Dec 17, 2023
1 parent 71a2962 commit 57cf5d5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion home/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,24 @@ in
type = "lua";
}
{
plugin = nvim-treesitter;
plugin = nvim-treesitter.withAllGrammars;
config = ''
-- Defer Treesitter setup after first render to improve startup time of 'nvim {filename}'
vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
auto_install = false,
highlight = { enable = true },
indent = { enable = true },
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<c-s>',
node_incremental = '<c-s>',
node_decremental = '<c-M-s>',
},
},
}
end, 0)
'';
type = "lua";
}
Expand Down

0 comments on commit 57cf5d5

Please sign in to comment.