This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
neovim/default.nix

40 lines
805 B
Nix
Raw Normal View History

2022-09-15 01:29:25 +03:00
{ 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
]))
];
};
};
}