feat: add treesitter-context nvim plugin
This commit is contained in:
parent
ece4c7c0bc
commit
8a8c63ac4b
2 changed files with 18 additions and 0 deletions
|
@ -121,6 +121,12 @@ in
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = ( builtins.readFile ./files/treesitter.lua);
|
config = ( builtins.readFile ./files/treesitter.lua);
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
plugin = nvim-treesitter-context;
|
||||||
|
type = "lua";
|
||||||
|
config = ( builtins.readFile ./files/treesitter_context.lua);
|
||||||
|
|
||||||
|
}
|
||||||
{
|
{
|
||||||
plugin = which-key-nvim;
|
plugin = which-key-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
|
|
12
modules/home-manager/cli/neovim/files/treesitter_context.lua
Normal file
12
modules/home-manager/cli/neovim/files/treesitter_context.lua
Normal 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,
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue