diff --git a/home/neovim/default.nix b/home/neovim/default.nix index 87b5422..3c5af06 100644 --- a/home/neovim/default.nix +++ b/home/neovim/default.nix @@ -2,20 +2,22 @@ { config = { - home.packages = with pkgs; [ - nil - nodePackages.pyright - neofetch - gopls - terraform-ls - ]; - programs.neovim = { enable = true; viAlias = true; vimAlias = true; vimdiffAlias = true; defaultEditor = true; + extraLuaConfig = builtins.readFile ./neovim.lua; + + extraPackages = with pkgs; [ + nil + nodePackages.pyright + neofetch + gopls + terraform-ls + ]; + plugins = with pkgs.vimPlugins; [ nvim-lspconfig gruvbox-nvim @@ -29,7 +31,6 @@ friendly-snippets neodev-nvim ]; - extraLuaConfig = builtins.readFile ./neovim.lua; }; programs.git.extraConfig.core.editor = "nvim";