From 9d62bfc350d1d1f4391ad065e30b74b2e6f5bd0c Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 13 Oct 2023 11:13:15 +0200 Subject: [PATCH] only make LSP programs available to nvim closes #9 --- home/neovim/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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";