summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/.ideavimrc13
-rw-r--r--modules/home/common.nix4
2 files changed, 17 insertions, 0 deletions
diff --git a/configs/.ideavimrc b/configs/.ideavimrc
new file mode 100644
index 0000000..d30a7a5
--- /dev/null
+++ b/configs/.ideavimrc
@@ -0,0 +1,13 @@
+" IDEAVIM SETTINGS
+
+" include the original plain (no-plugin) config
+source ~/.vimrc
+
+" enable ideavim-specific plugins
+Plug 'easymotion/vim-easymotion'
+Plug 'justinmk/vim-sneak'
+Plug 'machakann/vim-highlightedyank'
+
+" plugins that need extra ide plugins installed
+set quickscope " 'IdeaVim-Quickscope'
+set whichkey " 'Which-Key'
diff --git a/modules/home/common.nix b/modules/home/common.nix
index e2b57f7..9c62f22 100644
--- a/modules/home/common.nix
+++ b/modules/home/common.nix
@@ -37,6 +37,10 @@
     # base .vimrc for tools outside of vim, like the
     # VSCode Vim plugin.
     ".vimrc".source = ../../configs/.vimrc;
+
+    # special .vimrc for the IdeaVim plugin in JetBrains IDEs.
+    # `source`s the normal ~/.vimrc and enables IdeaVim-specfic plugins.
+    ".ideavimrc".source = ../../configs/.ideavimrc;
   };
 
   home.sessionPath = [