summary refs log tree commit diff
path: root/modules/vim.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-10-29 05:27:44 +0100
committerMel <einebeere@gmail.com>2024-10-29 05:27:44 +0100
commit1eb3a3a6f03d15f16674c273a62caf019e7b11bc (patch)
tree59d6a08cc54032b05ae2faa244d9059131163bcc /modules/vim.nix
parentafbbfeaa7d9d36b2ebe4a428ef8490d54e4b67da (diff)
downloadminerals-1eb3a3a6f03d15f16674c273a62caf019e7b11bc.tar.zst
minerals-1eb3a3a6f03d15f16674c273a62caf019e7b11bc.zip
Configure YCM for Nix editing
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/vim.nix')
-rw-r--r--modules/vim.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/vim.nix b/modules/vim.nix
index a511bc1..4fe62fe 100644
--- a/modules/vim.nix
+++ b/modules/vim.nix
@@ -1,13 +1,20 @@
 { pkgs, ... }:
 
 let
+  configs = [
+    ../configs/.vimrc
+    ../configs/plugins.vimrc
+  ];
+
+  customRC = with builtins; foldl' (r: f: r + (readFile f)) "" configs;
+
   vim-configured =
     with pkgs;
     vim-full.customize {
       name = "vim"; # explicitly replace vim
 
       vimrcConfig = {
-        customRC = builtins.readFile ../configs/.vimrc;
+        inherit customRC;
 
         packages.collection = with vimPlugins; {
           start = [