diff --git a/symlinks/config/nvim/init.lua b/symlinks/config/nvim/init.lua index 759af8d..4777eb0 100644 --- a/symlinks/config/nvim/init.lua +++ b/symlinks/config/nvim/init.lua @@ -40,10 +40,15 @@ vim.cmd("set path+=**") -- automatically rebalance windows on vim resize vim.cmd("autocmd VimResized * :wincmd =") -vim.api.nvim_create_user_command("EditConfigInitLua", function() +vim.api.nvim_create_user_command("EditVimConfig", function() vim.cmd("edit $VIMHOME/init.lua") end, {}) -vim.api.nvim_create_user_command("EditConfigPlugins", function() +vim.api.nvim_create_user_command("EditVimPlugins", function() vim.cmd("edit $VIMPLUGINS") end, {}) + +vim.api.nvim_create_user_command("ReloadVimConfig", function() + require("plenary.reload").reload_module("esensar", true) + vim.cmd("source $MYVIMRC") +end, {}) diff --git a/symlinks/ideavimrc b/symlinks/ideavimrc index f866a6d..5daf8e9 100644 --- a/symlinks/ideavimrc +++ b/symlinks/ideavimrc @@ -13,6 +13,8 @@ set idearefactormode=keep " IdeaVIM mappings nmap [c (VcsShowPrevChangeMarker) nmap ]c (VcsShowNextChangeMarker) +nmap ]w (GotoNextError) +nmap [w (GotoPreviousError) nmap (SearchEverywhere) nmap gd (GotoDeclaration) @@ -22,16 +24,16 @@ nmap rn (RenameElement) nmap (FindInPath) nmap tn (RunAnything) nmap tf (RunClass) -imap (ParameterInfo) -nmap (ParameterInfo) -nmap ]w (GotoNextError) -nmap [w (GotoPreviousError) +xmap (ParameterInfo) +nmap c (HideSideWindows) nmap db (ToggleLineBreakpoint) nmap dc (ChooseDebugConfiguration) nmap ac (ShowIntentionActions) +nmap tb (Annotate) + command! Start action Run if &ide =~? 'rider' command! A action SwitchHeaderSource @@ -51,5 +53,5 @@ command! TODO action ActivateTODOToolWindow command! Term action ActivateTerminalToolWindow command! Sync action Android.SyncProject command! Format action ReformatCode - -nmap tb (Annotate) +command! EditVimConfig e ~/.ideavimrc +command! ReloadVimConfig action IdeaVim.ReloadVimRc.reload