diff options
author | Alan Pearce | 2020-12-12 21:46:43 +0100 |
---|---|---|
committer | Alan Pearce | 2020-12-12 21:46:43 +0100 |
commit | ade124a556ce83405cad824d2a571ffe776b0f30 (patch) | |
tree | a8e3917830bc670ad90c2522aa29e8d9b06f4f2c /user/settings | |
parent | 35c5fef705308b8278f9e3135fd5aa919d9e0497 (diff) | |
download | nixfiles-ade124a556ce83405cad824d2a571ffe776b0f30.tar.lz nixfiles-ade124a556ce83405cad824d2a571ffe776b0f30.tar.zst nixfiles-ade124a556ce83405cad824d2a571ffe776b0f30.zip |
neovim: configure coc.nvim via nix
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/base.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix index 45336f5c..b181d4ad 100644 --- a/user/settings/base.nix +++ b/user/settings/base.nix @@ -1,6 +1,10 @@ { config, lib, pkgs, ... }: { + imports = [ + ../modules/nvim-coc.nix + ]; + # Let Home Manager install and manage itself. programs.home-manager.enable = true; manual = { @@ -31,9 +35,13 @@ opt = [ ]; }; }; + coc = { + config = { + "json.enable" = true; + "suggest.enablePreview" = true; + }; + }; }; - xdg.configFile."nvim/coc-settings.json".source = ../nvim/coc-settings.json; - home.sessionVariables = { EMAIL = "alan@alanpearce.eu"; XDG_CACHE_HOME = if pkgs.stdenv.isDarwin then "$HOME/Library/Caches/XDG" else "$HOME/.cache"; XDG_CONFIG_HOME = "$HOME/.config"; |