all repos — nixfiles @ 69dba9ad76730fa435a797e1586231c78d189d54

System and user configuration, managed by nix and home-manager

Extract neovim config to own file

Alan Pearce
commit

69dba9ad76730fa435a797e1586231c78d189d54

parent

96b814111069b36c1c7a4395348e4af41d336bcc

2 files changed, 38 insertions(+), 28 deletions(-)

jump to
M user/settings/base.nixuser/settings/base.nix
@@ -4,38 +4,13 @@ lib,
pkgs, ... }: { + imports = [ + ./neovim.nix + ]; # Let Home Manager install and manage itself. programs.home-manager.enable = true; manual = { html.enable = true; - }; - programs.neovim = { - enable = true; - vimAlias = true; - vimdiffAlias = true; - withNodeJs = true; - plugins = with pkgs.vimPlugins; [ - commentary - coc-git - coc-json - coc-tabnine - coc-yaml - vim-surround - ]; - extraLuaConfig = builtins.readFile ../nvim/init.lua; - coc = { - enable = true; - settings = { - "json.enable" = true; - "suggest.enablePreview" = true; - languageserver = { - nix = { - command = "${pkgs.nil}/bin/nil"; - filetypes = [ "nix" ]; - }; - }; - }; - }; }; home.sessionVariables = { EMAIL = "alan@alanpearce.eu";
A user/settings/neovim.nix
@@ -0,0 +1,35 @@
+{ + config, + lib, + pkgs, + ... +}: { + programs.neovim = { + enable = true; + vimAlias = true; + vimdiffAlias = true; + withNodeJs = true; + plugins = with pkgs.vimPlugins; [ + commentary + coc-git + coc-json + coc-tabnine + coc-yaml + vim-surround + ]; + extraLuaConfig = builtins.readFile ../nvim/init.lua; + coc = { + enable = true; + settings = { + "json.enable" = true; + "suggest.enablePreview" = true; + languageserver = { + nix = { + command = "${pkgs.nil}/bin/nil"; + filetypes = [ "nix" ]; + }; + }; + }; + }; + }; +}