From 69dba9ad76730fa435a797e1586231c78d189d54 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 Mar 2023 20:50:09 +0100 Subject: Extract neovim config to own file --- user/settings/neovim.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 user/settings/neovim.nix (limited to 'user/settings/neovim.nix') diff --git a/user/settings/neovim.nix b/user/settings/neovim.nix new file mode 100644 index 00000000..108b51a7 --- /dev/null +++ b/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" ]; + }; + }; + }; + }; + }; +} -- cgit 1.4.1