2024-05-06 18:14:52 -04:00
|
|
|
{pkgs, ...}: let
|
|
|
|
inherit (pkgs) vimPlugins;
|
|
|
|
in {
|
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
plugin = vimPlugins.nvim-treesitter-context;
|
|
|
|
type = "lua";
|
|
|
|
config =
|
2024-06-09 22:49:30 -04:00
|
|
|
# lua
|
2024-05-06 18:14:52 -04:00
|
|
|
''
|
|
|
|
require('treesitter-context').setup({
|
|
|
|
enable = true,
|
|
|
|
max_lines = 3,
|
|
|
|
min_window_height = 20,
|
|
|
|
});
|
|
|
|
|
2024-05-08 20:26:57 -04:00
|
|
|
vim.cmd.hi('TreesitterContextBottom', 'gui=underline guisp=Grey');
|
2024-05-06 18:14:52 -04:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
|
|
|
|
vimPlugins.nvim-treesitter-textobjects
|
|
|
|
|
|
|
|
{
|
2024-05-19 14:02:08 -04:00
|
|
|
plugin = vimPlugins.nvim-treesitter.withAllGrammars;
|
2024-05-06 18:14:52 -04:00
|
|
|
type = "lua";
|
|
|
|
config =
|
2024-06-09 22:49:30 -04:00
|
|
|
# lua
|
2024-05-06 18:14:52 -04:00
|
|
|
''
|
|
|
|
require('nvim-treesitter.configs').setup({
|
|
|
|
highlight = { enable = true },
|
|
|
|
indent = { enable = true },
|
|
|
|
});
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|