Files
dotfiles/pkgs/nattovim/default.nix
2025-06-29 19:49:39 +05:30

42 lines
707 B
Nix

{
wrapNeovimUnstable,
neovimUtils,
neovim-unwrapped,
nvimPackage ? neovim-unwrapped,
vimPlugins,
...
}:
let
nvimConfig = neovimUtils.makeNeovimConfig {
plugins = with vimPlugins; [
nvim-colorizer-lua
autoclose-nvim
toggleterm-nvim
luasnip
nvim-cmp
nvim-lspconfig
cmp-nvim-lsp
cmp-path
cmp-calc
cmp-emoji
cmp-buffer
barbar-nvim
nvim-web-devicons
presence-nvim
nvim-tree-lua
nvim-treesitter
lspkind-nvim
catppuccin-nvim
telescope-nvim
];
};
in
wrapNeovimUnstable nvimPackage (
nvimConfig
// {
luaRcContent = ''
${builtins.readFile ./init.lua}
'';
}
)