39 lines
805 B
Nix
39 lines
805 B
Nix
{ wrapNeovim, neovim-unwrapped, vimPlugins, ... }:
|
|
|
|
wrapNeovim neovim-unwrapped {
|
|
withPython3 = false;
|
|
withNodeJs = false;
|
|
withRuby = false;
|
|
|
|
configure = {
|
|
customRC = ''
|
|
lua << EOF
|
|
require("nvim-treesitter.configs").setup({
|
|
-- A list of parser names, or "all"
|
|
ensure_installed = {},
|
|
|
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
|
sync_install = false,
|
|
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
})
|
|
EOF
|
|
'';
|
|
|
|
packages.myVimPackages =
|
|
{
|
|
start = with vimPlugins; [
|
|
(nvim-treesitter.withPlugins
|
|
(ts: [
|
|
ts.tree-sitter-nix
|
|
]))
|
|
];
|
|
};
|
|
};
|
|
}
|