feat: add treesitter-context nvim plugin

This commit is contained in:
Yorick Barbanneau 2024-04-06 01:01:40 +02:00
parent ece4c7c0bc
commit 8a8c63ac4b
2 changed files with 18 additions and 0 deletions

View file

@ -121,6 +121,12 @@ in
type = "lua";
config = ( builtins.readFile ./files/treesitter.lua);
}
{
plugin = nvim-treesitter-context;
type = "lua";
config = ( builtins.readFile ./files/treesitter_context.lua);
}
{
plugin = which-key-nvim;
type = "lua";

View file

@ -0,0 +1,12 @@
require('treesitter-context').setup{
enable = true,
max_lines = 0,
min_window_height = 0,
line_numbers = true,
multiline_threshold = 20,
trim_scope = 'outer',
mode = 'cursor',
separator = nil,
zindex = 20,
on_attach = nil,
}