Extract neovim config to own file
1 file changed, 35 insertions(+), 0 deletions(-)
changed files
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" ]; + }; + }; + }; + }; + }; +}