From 516539fa3daead55ca97c33d97c1f2a20fa7538f Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 18 Jul 2025 00:57:35 +0200 Subject: Add .ideavimrc for IdeaVim plugin in JetBrains IDEs Signed-off-by: Mel --- configs/.ideavimrc | 13 +++++++++++++ modules/home/common.nix | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 configs/.ideavimrc 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 = [ -- cgit 1.4.1