nixos-config/users/rouven/modules/neovim/default.nix

32 lines
669 B
Nix
Raw Normal View History

2022-12-19 19:30:32 +01:00
{ config, pkgs, ... }:
{
2023-02-21 17:59:05 +01:00
home.packages = with pkgs; [
2023-02-21 22:16:03 +01:00
# a few language servers
2023-02-21 17:59:05 +01:00
python310Packages.python-lsp-server
2023-02-21 22:16:03 +01:00
python310Packages.python-lsp-black
python310Packages.black
python310Packages.pylint
rnix-lsp
2023-02-21 17:59:05 +01:00
];
2022-12-19 19:30:32 +01:00
programs.neovim = {
enable = true;
2022-12-22 14:04:39 +01:00
vimAlias = true;
2022-12-19 19:30:32 +01:00
plugins = with pkgs.vimPlugins; [
nerdtree
nerdcommenter
vim-repeat
vim-airline
fzf-vim
dracula-vim
vim-nix # this destroys my tab settings, ffs
2023-02-21 17:59:05 +01:00
nvim-lspconfig
nvim-cmp
2023-02-21 22:16:03 +01:00
lsp-format-nvim
2023-02-21 17:59:05 +01:00
cmp-buffer
cmp-nvim-lsp
cmp-path
2022-12-19 19:30:32 +01:00
];
};
2023-02-21 22:16:03 +01:00
xdg.configFile."nvim/init.lua".source = ./init.lua;
2022-12-19 19:30:32 +01:00
}