summary refs log tree commit diff
path: root/modules/vim.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-10-29 04:25:31 +0100
committerMel <einebeere@gmail.com>2024-10-29 04:25:31 +0100
commitafbbfeaa7d9d36b2ebe4a428ef8490d54e4b67da (patch)
tree2493bd222f778d48014e9628a185a268fd0fdbda /modules/vim.nix
parentb0bc9f5b5dbf68eb89bfaa01f39c2f3a0cc63a79 (diff)
downloadminerals-afbbfeaa7d9d36b2ebe4a428ef8490d54e4b67da.tar.zst
minerals-afbbfeaa7d9d36b2ebe4a428ef8490d54e4b67da.zip
Configure vim plugins and add tools
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/vim.nix')
-rw-r--r--modules/vim.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/vim.nix b/modules/vim.nix
new file mode 100644
index 0000000..a511bc1
--- /dev/null
+++ b/modules/vim.nix
@@ -0,0 +1,34 @@
+{ pkgs, ... }:
+
+let
+  vim-configured =
+    with pkgs;
+    vim-full.customize {
+      name = "vim"; # explicitly replace vim
+
+      vimrcConfig = {
+        customRC = builtins.readFile ../configs/.vimrc;
+
+        packages.collection = with vimPlugins; {
+          start = [
+            YouCompleteMe
+            fzf-vim
+            vim-easymotion
+            vim-sleuth
+            vim-better-whitespace
+            vim-tmux-navigator
+          ];
+
+          opt = [ ];
+        };
+      };
+    };
+
+in
+{
+  programs.vim = {
+    defaultEditor = true;
+
+    package = vim-configured;
+  };
+}