nixos-laptop/home/neovim/default.nix
2023-10-08 16:57:57 +02:00

36 lines
684 B
Nix

{ pkgs, ... }:
{
config = {
home.packages = with pkgs; [
nil
nodePackages.pyright
neofetch
gopls
];
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
nvim-lspconfig
gruvbox-nvim
leap-nvim
telescope-nvim
vim-commentary
vim-sleuth
gitsigns-nvim
nvim-cmp
cmp-nvim-lsp
friendly-snippets
neodev-nvim
];
extraLuaConfig = builtins.readFile ./neovim.lua;
};
programs.git.extraConfig.core.editor = "nvim";
};
}