nixos-config/users/rouven/modules/neovim/default.nix
2023-02-21 22:16:03 +01:00

32 lines
669 B
Nix

{ config, pkgs, ... }:
{
home.packages = with pkgs; [
# a few language servers
python310Packages.python-lsp-server
python310Packages.python-lsp-black
python310Packages.black
python310Packages.pylint
rnix-lsp
];
programs.neovim = {
enable = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
nerdtree
nerdcommenter
vim-repeat
vim-airline
fzf-vim
dracula-vim
vim-nix # this destroys my tab settings, ffs
nvim-lspconfig
nvim-cmp
lsp-format-nvim
cmp-buffer
cmp-nvim-lsp
cmp-path
];
};
xdg.configFile."nvim/init.lua".source = ./init.lua;
}