summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2021-06-05 15:41:43 +0200
committerAlan Pearce2021-06-05 15:41:43 +0200
commitb1cc8c0bf8b699c435e967873d88159aae7b2ad4 (patch)
treed65915ad464f0a4d53ff55bfb0606d5f53e3da0e /user/settings
parent5da5d88c34e617be104f241499965a6daa183dd4 (diff)
downloadnixfiles-b1cc8c0bf8b699c435e967873d88159aae7b2ad4.tar.lz
nixfiles-b1cc8c0bf8b699c435e967873d88159aae7b2ad4.tar.zst
nixfiles-b1cc8c0bf8b699c435e967873d88159aae7b2ad4.zip
neovim: update config structure for home-manager 21.05
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/base.nix35
1 files changed, 15 insertions, 20 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix
index 4ad9edfb..1e19a48d 100644
--- a/user/settings/base.nix
+++ b/user/settings/base.nix
@@ -15,26 +15,21 @@
     vimAlias = true;
     vimdiffAlias = true;
     withNodeJs = true;
-    configure = {
-      customRC = builtins.readFile ../nvim/init.vim;
-      packages.myVimPackage = with pkgs.vimPlugins; {
-        start = [
-          commentary
-          coc-css
-          coc-eslint
-          coc-git
-          coc-html
-          coc-json
-          coc-nvim
-          coc-prettier
-          coc-tabnine
-          coc-yaml
-          vim-surround
-          vim-nix
-        ];
-        opt = [ ];
-      };
-    };
+    plugins = with pkgs.vimPlugins; [
+      commentary
+      coc-css
+      coc-eslint
+      coc-git
+      coc-html
+      coc-json
+      coc-nvim
+      coc-prettier
+      coc-tabnine
+      coc-yaml
+      vim-surround
+      vim-nix
+    ];
+    extraConfig = builtins.readFile ../nvim/init.vim;
     coc = {
       config = {
         "json.enable" = true;