Files
dotfiles/modules/nvim/default.nix
2022-07-12 01:14:09 +05:30

49 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
package = pkgs.neovim-nightly;
# package = pkgs.neovim-nightly.overrideAttrs (_:{
# nativeBuildInputs = with pkgs; [ unzip cmake pkgconfig gettext tree-sitter ];
# });
defaultEditor = false;
configure = {
customRC = ''
lua << EOF
${builtins.readFile ./init.lua}
EOF
'';
packages.myVimPackage = with pkgs.unstable.vimPlugins; {
start = [
nvim-colorizer-lua
bracey-vim
auto-pairs
vim-floaterm
vim-closetag
nerdcommenter
nvim-cmp
luasnip
friendly-snippets
cmp_luasnip
cmp-nvim-lsp
cmp-path
cmp-calc
cmp-emoji
# cmp-look
cmp-buffer
nvim-lspconfig
barbar-nvim
presence-nvim
nvim-web-devicons
nvim-tree-lua
(nvim-treesitter.withPlugins (plugins: pkgs.unstable.tree-sitter.allGrammars))
vim-latex-live-preview
lspkind-nvim
base16-vim
];
};
};
};
}