blob: b29a6aafd07df1b04fcc11e03e08c3c08aabeac6 [file] [log] [blame]
{
pkgs,
lib,
...
}: let
disabledGrammars = [
"tree-sitter-sql"
];
in {
programs.neovim = {
plugins = with pkgs.vimPlugins; [
(nvim-treesitter.withPlugins (plugins:
(lib.pipe plugins [
(lib.filterAttrs (name: value: !builtins.elem name disabledGrammars))
builtins.attrValues
])
++ (with pkgs.vimPlugins; [
nvim-ts-rainbow
])))
nvim-treesitter-context
];
extraConfig = ''
source ${./setup.lua}
'';
};
}