summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2023-03-14 16:15:22 +0100
committerAlan Pearce2023-03-14 16:30:42 +0100
commit5e5cb81bc8f7a344fc43bc658fd409be5da55e67 (patch)
tree8c87aeb5ae2b10012962fef4e3f8160ffec557b1 /user/settings
parentf61a949a9a394afd3f21b8e993412630ad73a2e9 (diff)
downloadnixfiles-5e5cb81bc8f7a344fc43bc658fd409be5da55e67.tar.lz
nixfiles-5e5cb81bc8f7a344fc43bc658fd409be5da55e67.tar.zst
nixfiles-5e5cb81bc8f7a344fc43bc658fd409be5da55e67.zip
neovim: use builtin home-manager module to configure coc
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/base.nix7
-rw-r--r--user/settings/tabnine.nix2
2 files changed, 3 insertions, 6 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix
index 105ec050..b5ed8f0d 100644
--- a/user/settings/base.nix
+++ b/user/settings/base.nix
@@ -4,10 +4,6 @@
   pkgs,
   ...
 }: {
-  imports = [
-    ../modules/nvim-coc.nix
-  ];
-
   # Let Home Manager install and manage itself.
   programs.home-manager.enable = true;
   manual = {
@@ -33,7 +29,8 @@
     ];
     extraLuaConfig = builtins.readFile ../nvim/init.lua;
     coc = {
-      config = {
+      enable = true;
+      settings = {
         "json.enable" = true;
         "suggest.enablePreview" = true;
       };
diff --git a/user/settings/tabnine.nix b/user/settings/tabnine.nix
index 61cbf29c..02f0e071 100644
--- a/user/settings/tabnine.nix
+++ b/user/settings/tabnine.nix
@@ -87,7 +87,7 @@
     };
   };
 
-  programs.neovim.coc.config = {
+  programs.neovim.coc.settings = {
     "tabnine.binary_path" = "${pkgs.tabnine}/bin/TabNine";
   };
 }