Last active
April 10, 2025 02:00
-
-
Save mohitt/93f58381dbb5a83061fe4af3b5880be7 to your computer and use it in GitHub Desktop.
.ideavimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" LazyVim key mappings for Jetbrains IDEs. | |
" LazyVim default settings | |
" https://www.lazyvim.org/configuration/general | |
let mapleader=" " | |
let maplocalleader="\\" | |
" Confirm to save changes before exiting modified buffer | |
set formatoptions=jcroqlnt | |
" Print line number | |
set number | |
" Relative line numbers | |
set relativenumber | |
" Lines of context | |
set scrolloff=4 | |
" Round indent | |
set shiftround | |
" Columns of context | |
set sidescrolloff=8 | |
" which-key says to set this high, or set notimeout | |
set timeoutlen=10000 | |
set notimeout | |
set undolevels=10000 | |
" Disable line wrap | |
set nowrap | |
" Neovim settings that differ from Vim | |
" https://neovim.io/doc/user/diff.html | |
" https://github.com/mikeslattery/nvim-defaults.vim/blob/main/plugin/.vimrc | |
set backspace=indent,eol,start | |
set formatoptions=tcqj | |
set listchars=tab:>\ ,trail:-,nbsp:+ | |
set shortmess=filnxtToOF | |
" Enable plugin behavior | |
" https://github.com/JetBrains/ideavim/wiki/IdeaVim-Plugins | |
" https://www.lazyvim.org/plugins | |
" gcc and gc<action> mappings. | |
Plug 'tpope/vim-commentary' | |
" Emulate LazyVim mini.surround mappings | |
Plug 'tpope/vim-surround' | |
set g:surround_no_mappings = 1 | |
nmap gsa <Plug>YSurround | |
xmap gsa <Plug>VSurround | |
nmap gsr <Plug>CSurround | |
nmap gsd <Plug>DSurround | |
" Use s to jump anywhere (similar to flash.nvim in LazyVim) | |
set easymotion | |
set g:EasyMotion_do_mapping = 0 | |
nmap s <Plug>(easymotion-s) | |
xmap s <Plug>(easymotion-s) | |
omap s <Plug>(easymotion-s) | |
" Enable the whichkey plugin, available on Jetbrains marketplace | |
set which-key | |
" Extended matching. A Neovim default plugin. | |
set matchit | |
" Key maps | |
" https://www.lazyvim.org/configuration/keymaps | |
" To track Action-IDs | |
" :action VimFindActionIdAction | |
" General Keymaps | |
" Go to Left Window | |
nmap <C-h> <C-w>h | |
" Go to Lower Window | |
nmap <C-j> <C-w>j | |
" Go to Upper Window | |
nmap <C-k> <C-w>k | |
" Go to Right Window | |
nmap <C-l> <C-w>l | |
" Increase Window Height | |
nmap <C-Up> <Action>(IncrementWindowHeight) | |
" Decrease Window Height | |
nmap <C-Down> <Action>(DecrementWindowHeight) | |
" Decrease Window Width | |
nmap <C-Left> <Action>(DecrementWindowWidth) | |
" Increase Window Width | |
nmap <C-Right> <Action>(IncrementWindowWidth) | |
" Move Down | |
nmap <A-j> <Action>(MoveLineDown) | |
imap <A-j> <Esc><Action>(MoveLineDown)i | |
" Move Up | |
nmap <A-k> <Action>(MoveLineUp) | |
imap <A-k> <Esc><Action>(MoveLineUp)i | |
" Prev Buffer | |
nmap <S-h> <Action>(PreviousTab) | |
" Next Buffer | |
nmap <S-l> <Action>(NextTab) | |
" Prev Buffer (alternative) | |
nmap [b <Action>(PreviousTab) | |
" Next Buffer (alternative) | |
nmap ]b <Action>(NextTab) | |
" Switch to Other Buffer | |
nnoremap <leader>bb <C-^> | |
" Switch to Other Buffer (alternative) | |
nnoremap <leader>` <C-^> | |
" Delete Buffer | |
nmap <leader>bd <Action>(CloseContent) | |
" Delete Buffer and Window | |
nmap <leader>bD <Action>(CloseContent) | |
" Delete Other Buffers | |
nmap <leader>bo <Action>(CloseAllEditorsButActive) | |
" Escape and Clear hlsearch | |
nmap <esc> :nohlsearch<CR> | |
nmap <leader>ur :nohlsearch<CR> | |
" Keywordprg | |
nmap <leader>K :help<space><C-r><C-w><CR> | |
" Add Comment Below | |
nmap gco o<c-o>gcc | |
" Add Comment Above | |
nmap gcO O<c-o>gcc | |
" Lazy | |
nmap <leader>l <Action>(WelcomeScreen.Plugins) | |
" New File | |
nmap <leader>fn <Action>(NewElementSamePlace) | |
" Location List | |
nmap <leader>xl <Action>(ActivateProblemsViewToolWindow) | |
" Quickfix List | |
nmap <leader>xq <Action>(ActivateProblemsViewToolWindow) | |
" Previous Quickfix | |
nmap [q <Action>(GotoPreviousError) | |
" Next Quickfix | |
nmap ]q <Action>(GotoNextError) | |
" Format | |
nmap <leader>cf <Action>(Format) | |
vmap <leader>cf <Action>(Format) | |
" Line Diagnostics | |
nmap <leader>cd <Action>(ActivateProblemsViewToolWindow) | |
" Next Diagnostic | |
nmap ]d <Action>(GotoNextError) | |
" Prev Diagnostic | |
nmap [d <Action>(GotoPreviousError) | |
" Next Error | |
nmap ]e <Action>(GotoNextError) | |
" Prev Error | |
nmap [e <Action>(GotoPreviousError) | |
" Next Warning | |
nmap ]w <Action>(GotoNextError) | |
" Prev Warning | |
nmap [w <Action>(GotoPreviousError) | |
" Toggle Auto Format (Global) | |
nmap <leader>ub :echo 'There is no equivalent mapping for Toggle Auto Format.'<cr> | |
" Toggle Auto Format (Buffer) | |
nmap <leader>uB :echo 'There is no equivalent mapping for Toggle Auto Format.'<cr> | |
" Toggle Spelling | |
nmap <leader>us :setlocal spell!<CR> | |
" Toggle Wrap | |
nmap <leader>uw :setlocal wrap!<CR> | |
" Toggle Relative Number | |
nmap <leader>uL :set relativenumber!<CR> | |
" Toggle Diagnostics | |
nmap <leader>ud <Action>(ActivateProblemsViewToolWindow) | |
" Toggle Line Numbers | |
nmap <leader>ul :set number!<CR> | |
" Toggle conceallevel | |
nmap <leader>uc :echo 'There is no equivalent mapping for Toggle Conceallevel.'<cr> | |
" Toggle Treesitter Highlight | |
nmap <leader>uT :echo 'There is no equivalent mapping for Toggle Treesitter Highlight.'<cr> | |
" Toggle Background | |
nmap <leader>ub <Action>(QuickChangeScheme) | |
" Toggle Inlay Hints | |
nmap <leader>uh <Action>(ToggleInlayHintsGloballyAction) | |
" Lazygit (Root Dir) | |
nmap <leader>gg <Action>(ActivateCommitToolWindow) | |
" Lazygit (cwd) | |
nmap <leader>gG <Action>(ActivateCommitToolWindow) | |
" Git Blame Line | |
nmap <leader>gb <Action>(Annotate) | |
" Git Browse | |
nmap <leader>gB <Action>(Vcs.Show.Log) | |
" Lazygit Current File History | |
nmap <leader>gf <Action>(Vcs.ShowTabbedFileHistory) | |
" Lazygit Log | |
nmap <leader>gl <Action>(Vcs.Show.Log) | |
" Lazygit Log (cwd) | |
nmap <leader>gL <Action>(Vcs.Show.Log) | |
" Quit All | |
nmap <leader>qq <Action>(Exit) | |
" Inspect Pos | |
nmap <leader>ui <Action>(ActivateStructureToolWindow) | |
" Inspect Tree | |
nmap <leader>uI <Action>(ActivateStructureToolWindow) | |
" LazyVim Changelog | |
nmap <leader>L <Action>(WhatsNewAction) | |
" Terminal (Root Dir) | |
nmap <leader>ft <Action>(ActivateTerminalToolWindow) | |
" Terminal (cwd) | |
nmap <leader>fT <Action>(ActivateTerminalToolWindow) | |
" Terminal (Root Dir) | |
nmap <C-/> <Action>(ActivateTerminalToolWindow) | |
" nmap <C-_> 'There is no equivalent mapping for <c-_>.'<cr> | |
" Hide Terminal - terminal mode maps not possible | |
" Split Window Below. :split<cr> doesn't work. | |
nmap <leader>- <c-w>s | |
" Split Window Right | |
nmap <leader><bar> <c-w>v | |
" Delete Window | |
nmap <leader>wd <Action>(CloseContent) | |
" Toggle Maximize | |
nmap <leader>wm <Action>(ToggleDistractionFreeMode) | |
" Tabs are treated as saved layouts | |
" Last Tab | |
nmap <leader><tab>l <Action>(StoreDefaultLayout)<Action>(ChangeToolWindowLayout) | |
" Close Other Tabs | |
nmap <leader><tab>o :<cr> | |
" First Tab | |
nmap <leader><tab>f <Action>(StoreDefaultLayout)<Action>(ChangeToolWindowLayout) | |
" New Tab | |
nmap <leader><tab>f <Action>(StoreDefaultLayout)<Action>(StoreNewLayout) | |
" Next Tab | |
nmap <leader><tab>] <Action>(StoreDefaultLayout)<Action>(ChangeToolWindowLayout) | |
" Previous Tab | |
nmap <leader><tab>[ <Action>(StoreDefaultLayout)<Action>(ChangeToolWindowLayout) | |
" Close Tab | |
nmap <leader><tab>f <Action>(StoreDefaultLayout)<Action>(ChangeToolWindowLayout) | |
" LSP Keymaps | |
" Lsp Info | |
nmap <leader>cc :echo 'There is no equivalent mapping for Lsp Info.'<cr> | |
" Goto Definition | |
nmap gd <Action>(GotoDeclaration) | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" References | |
nmap gr <Action>(FindUsages) | |
" Goto Implementation | |
nmap gI <Action>(GotoImplementation) | |
" Goto Type Definition | |
nmap gy <Action>(GotoTypeDeclaration) | |
" Goto Declaration | |
nmap gD <Action>(GotoDeclaration) | |
" Signature Help | |
nmap gK <Action>(ParameterInfo) | |
" Signature Help in Insert Mode | |
imap <C-k> <C-o><Action>(ParameterInfo) | |
" Code Action | |
nmap <leader>ca <Action>(RefactoringMenu) | |
vmap <leader>ca <Action>(RefactoringMenu) | |
" Run Codelens | |
nmap <leader>cc :echo 'There is no equivalent mapping for Run Codelens.'<cr> | |
" Refresh & Display Codelens | |
nmap <leader>cC :echo 'There is no equivalent mapping for Refresh & Display Codelens.'<cr> | |
" Rename File | |
nmap <leader>cR <Action>(RenameFile) | |
" Rename | |
nmap <leader>cr <Action>(RenameElement) | |
" Source Action | |
nmap <leader>cA <Action>(ShowIntentionActions) | |
" Next Reference | |
nmap ]] <Action>(GotoNextElementUnderCaretUsage) | |
" Prev Reference | |
nmap [[ <Action>(GotoPrevElementUnderCaretUsage) | |
" Next Reference (alternative) | |
nmap <a-n> <Action>(GotoNextElementUnderCaretUsage) | |
" Prev Reference (alternative) | |
nmap <a-p> <Action>(GotoPrevElementUnderCaretUsage) | |
" Bufferline | |
" Delete buffers to the left | |
nmap <leader>bl <Action>(CloseAllToTheLeft) | |
" Toggle pin | |
nmap <leader>bp <Action>(PinActiveTabToggle) | |
" Delete Non-Pinned Buffers | |
nmap <leader>bP <Action>(CloseAllUnpinnedEditors) | |
" Delete buffers to the right | |
nmap <leader>br <Action>(CloseAllToTheRight) | |
" Neo-tree Keymaps | |
" Buffer Explorer | |
nmap <leader>be <Action>(ActivateProjectToolWindow) | |
" Explorer NeoTree (Root Dir) | |
nmap <leader>e <Action>(FileStructurePopup) | |
" Explorer NeoTree (cwd) | |
nmap <leader>E <Action>(SelectInProjectView) | |
" Explorer NeoTree (Root Dir) (alternative) | |
nmap <leader>fe <Action>(ActivateProjectToolWindow) | |
" Explorer NeoTree (cwd) (alternative) | |
nmap <leader>fE <Action>(ActivateProjectToolWindow) | |
" Git Explorer | |
nmap <leader>ge <Action>(ActivateVersionControlToolWindow) | |
" Notifications (noice, snacks) | |
nmap <leader>snd <Action>(ClearAllNotifications) | |
nmap <leader>un <Action>(ClearAllNotifications) | |
" Telescope Keymaps | |
" Find Files (Root Dir) | |
nmap <leader><space> <Action>(GotoFile) | |
" Switch Buffer | |
nmap <leader>, <Action>(Switcher) | |
" Grep (Root Dir) | |
nmap <leader>/ <Action>(FindInPath) | |
" Command History | |
nmap <leader>: :history<cr> | |
" Buffers | |
nmap <leader>fb <Action>(Switcher) | |
" Find Config File | |
nmap <leader>fc <Action>(GotoFile) | |
" Find Files (Root Dir) (alternative) | |
nmap <leader>ff <Action>(GotoFile) | |
" Find Files (cwd) | |
nmap <leader>fF <Action>(GotoFile) | |
" Find Files (git-files) | |
nmap <leader>fg <Action>(GotoFile) | |
" Recent | |
nmap <leader>fr <Action>(RecentFiles) | |
" Recent (cwd) | |
nmap <leader>fR <Action>(RecentFiles) | |
" Commits | |
nmap <leader>gc <Action>(Vcs.Show.Log) | |
" Status | |
nmap <leader>gs <Action>(Vcs.Show.Log) | |
" Registers | |
nmap <leader>s" :registers<cr> | |
" Auto Commands | |
nmap <leader>sa :echo 'There is no equivalent mapping.'<cr> | |
" Buffer | |
nmap <leader>sb <Action>(Switcher) | |
" Command History (alternative) | |
nmap <leader>sc :history<cr> | |
" Commands | |
nmap <leader>sC <Action>(GotoAction) | |
" Document Diagnostics | |
nmap <leader>sd <Action>(ActivateProblemsViewToolWindow) | |
" Workspace Diagnostics | |
nmap <leader>sD <Action>(ActivateProblemsViewToolWindow) | |
" Grep (Root Dir) (alternative) | |
nmap <leader>sg <Action>(FindInPath) | |
" Grep (cwd) | |
nmap <leader>sG <Action>(FindInPath) | |
" Help Pages | |
nmap <leader>sh <Action>(HelpTopics) | |
" Search Highlight Groups | |
nmap <leader>sH <Action>(HighlightUsagesInFile) | |
" Jumplist | |
nmap <leader>sj <Action>(RecentLocations) | |
" Key Maps | |
nmap <leader>sk :map<cr> | |
" Location List | |
nmap <leader>sl <Action>(ActivateProblemsViewToolWindow) | |
" Jump to Mark | |
nmap <leader>sm :marks<cr> | |
" Man Pages | |
nmap <leader>sM <Action>(ShowDocumentation) | |
" Options | |
nmap <leader>so <Action>(ShowSettings) | |
" Quickfix List | |
nmap <leader>sq <Action>(ActivateProblemsViewToolWindow) | |
" Resume | |
nmap <leader>sR :echo 'Not yet implmented.'<cr> | |
" Goto Symbol | |
nmap <leader>ss <Action>(GotoSymbol) | |
" Goto Symbol (Workspace) | |
nmap <leader>sS <Action>(GotoSymbol) | |
" Word (Root Dir) | |
nmap <leader>sw mzviw<Action>(FindInPath)<esc>`z | |
" Word (cwd) | |
nmap <leader>sW mzviw<Action>(FindInPath)<esc>`z | |
" Selection (Root Dir) | |
vmap <leader>sw <Action>(FindInPath) | |
" Selection (cwd) | |
vmap <leader>sW <Action>(FindInPath) | |
" Colorscheme with Preview | |
nmap <leader>uC <Action>(QuickChangeScheme) | |
" DAP Keymaps | |
" Run with Args | |
nmap <leader>da <Action>(ChooseRunConfiguration) | |
" Toggle Breakpoint | |
nmap <leader>db <Action>(ToggleLineBreakpoint) | |
" Breakpoint Condition | |
nmap <leader>dB <Action>(AddConditionalBreakpoint) | |
" Continue | |
nmap <leader>dc <Action>(Resume) | |
" Run to Cursor | |
nmap <leader>dC <Action>(ForceRunToCursor) | |
" Go to Line (No Execute) | |
nmap <leader>dg :echo 'Not yet implemented.'<cr> | |
" Step Into | |
nmap <leader>di <Action>(StepInto) | |
" Down | |
nmap <leader>dj <Action>(GotoNextError) | |
" Up | |
nmap <leader>dk <Action>(GotoPreviousError) | |
" Run Last | |
nmap <leader>dl <Action>(Debug) | |
" Step Out | |
nmap <leader>do <Action>(StepOut) | |
" Step Over | |
nmap <leader>dO <Action>(StepOver) | |
" Pause | |
nmap <leader>dp <Action>(Pause) | |
" Toggle REPL | |
nmap <leader>dr <Action>(JShell.Console) | |
" Session | |
nmap <leader>ds :echo 'Not yet implmented.'<cr> | |
" Terminate | |
nmap <leader>dt <Action>(Stop) | |
" Widgets | |
nmap <leader>dw :echo 'There is no equivalent mapping for Widgets.'<cr> | |
" Todo-comments Keymaps | |
" Todo | |
nmap <leader>st <Action>(ActivateTODOToolWindow) | |
" Todo/Fix/Fixme | |
nmap <leader>sT <Action>(ActivateTODOToolWindow) | |
" Todo (Trouble) | |
nmap <leader>xt <Action>(ActivateTODOToolWindow) | |
" Todo/Fix/Fixme (Trouble) | |
nmap <leader>xT <Action>(ActivateTODOToolWindow) | |
" Previous Todo Comment | |
nmap [t ?\(TODO\|FIX\|HACK\|WARN\|PERF\|NOTE\|TEST\):<cr> | |
" Next Todo Comment | |
nmap ]t /\(TODO\|FIX\|HACK\|WARN\|PERF\|NOTE\|TEST\):<cr> | |
" DAP UI Keymaps | |
" Eval | |
nmap <leader>de <Action>(EvaluateExpression) | |
vmap <leader>de <Action>(EvaluateExpression) | |
" Dap UI | |
nmap <leader>du <Action>(ActivateDebugToolWindow) | |
" Neotest Keymaps | |
" Run Last | |
nmap <leader>tl <Action>(Run) | |
" Show Output | |
nmap <leader>to <Action>(ActivateRunToolWindow) | |
" Toggle Output Panel | |
nmap <leader>tO <Action>(ActivateRunToolWindow) | |
" Run Nearest | |
nmap <leader>tr <Action>(RunClass) | |
" Toggle Summary | |
nmap <leader>ts :echo 'Not yet implmented.'<cr> | |
" Stop | |
nmap <leader>tS <Action>(Stop) | |
" Run File | |
nmap <leader>tt <Action>(RunClass) | |
" Run All Test Files | |
nmap <leader>tT :echo 'Not yet implmented.'<cr> | |
" Toggle Watch | |
nmap <leader>tw :echo 'Not yet implmented.'<cr> | |
" nvim-dap | |
" Debug Nearest | |
nmap <leader>td <Action>(ChooseDebugConfiguration) | |
" Neovim mappings | |
" https://neovim.io/doc/user/vim_diff.html#_default-mappings | |
nnoremap Y y$ | |
inoremap <C-U> <C-G>u<C-U> | |
inoremap <C-W> <C-G>u<C-W> | |
" Q isn't exactly the same. | |
nnoremap Q @@ | |
" There are several more Neovim mappings that need to be ported. | |
" Hide all windows | |
nmap <leader>uz :action HideAllWindows<CR> | |
" search everywhere | |
nnoremap <leader>me :action SearchEverywhere<CR> | |
" reload config | |
nnoremap <leader>vl :source ~/.ideavimrc<CR> | |
" edit config | |
nnoremap <leader>ve :e ~/.ideavimrc<CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = " " | |
nnoremap <Leader>vl :source ~/.ideavimrc<CR> | |
nnoremap <Leader>ve :e ~/.ideavimrc<CR> | |
set clipboard=unnamedplus,unnamed | |
set nu | |
set rnu | |
set is | |
" | |
nmap <Leader>ff :action GotoFile<CR> | |
nmap <Leader>fs :action GotoSymbol<CR> | |
nmap <Leader>s :action FileStructurePopup<CR> | |
nmap <Leader>F :action FindInPath<CR> | |
nmap <Leader>a :action GotoAction<CR> | |
nmap <Leader>e :action SearchEverywhere<CR> | |
nmap <Leader>j :action PreviousTab<CR> | |
nmap <Leader>k :action NextTab<CR> | |
nmap <Leader>r :action RecentFiles<CR> | |
nmap <Leader>p :action ReformatWithPrettierAction<CR> | |
nmap <Leader>pp :action Tool_External Tools_black-formatter<CR> | |
nmap <Leader>d :action CloseEditor<CR> | |
nmap <Leader>t :NERDTreeFocus<CR> | |
vmap <Leader>tt :action Refactorings.QuickListPopupAction<CR> | |
nmap ]c :action VcsShowNextChangeMarker<CR> | |
nmap [c :action VcsShowPrevChangeMarker<CR> | |
nnoremap ,d :action ContextDebug<CR> | |
nmap <Leader>wl :action SelectInProjectView<CR> | |
nmap <Leader>wc :action CloseAllEditorsButActive<CR> | |
nmap <Leader>wa :action HideAllWindows<CR> | |
nmap gu :action ShowUsages<CR> | |
map za :action ExpandCollapseToggleAction<CR> | |
nmap gi :action GotoImplementation<CR> | |
nmap <C-o> :action Back<CR> | |
nmap <C-i> :action Forward<CR> | |
set commentary | |
set surround | |
set multiple-cursors | |
map mc <A-n> | |
map mx <A-x> | |
map mp <A-p> | |
set clipboard+=ideaput | |
set NERDTree | |
set matchit | |
set highlightedyank | |
set visualbell | |
set NERDTree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// { Vim settings start | |
"editor.renderWhitespace": "all", | |
"editor.lineNumbers": "relative", | |
"vim.showMarksInGutter": false, | |
"vim.foldfix": true, | |
"vim.surround": true, | |
"vim.useSystemClipboard": true, | |
"vim.easymotion": true, | |
"vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj", | |
"vim.leader": "<space>", | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
{ | |
"before": [":", "w", "<CR>"], | |
"commands": ["workbench.action.files.save"] | |
}, | |
{ | |
"before": ["<leader>", "w"], | |
"commands": ["workbench.action.files.save"] | |
}, | |
{ | |
"before": ["<leader>", "q"], | |
"commands": ["workbench.action.closeWindow"], | |
"when": "workbench.action.closeWindow" | |
}, | |
// FLASH.NVIM | |
{ | |
// Flash | |
"before": ["s"], | |
"after": ["<leader>", "<leader>", "/"] | |
}, | |
{ | |
// Flash Treesitter | |
"before": ["S"], | |
"after": ["<leader>", "<leader>", "<leader>", "j"] | |
} | |
], | |
"vim.normalModeKeyBindings": [ | |
// GENERAL | |
{ | |
// Go to left window | |
"before": ["<C-h>"], | |
"after": ["<C-W>", "h"] | |
}, | |
{ | |
// Go to lower window | |
"before": ["<C-j>"], | |
"after": ["<C-W>", "j"] | |
}, | |
{ | |
// Go to upper window | |
"before": ["<C-k>"], | |
"after": ["<C-W>", "k"] | |
}, | |
{ | |
// Go to right window | |
"before": ["<C-l>"], | |
"after": ["<C-W>", "l"] | |
}, | |
{ | |
// Increase window height | |
"before": ["<C-Up>"], | |
"commands": ["workbench.action.increaseViewHeight"] | |
}, | |
{ | |
// Decrease window height | |
"before": ["<C-Up>"], | |
"commands": ["workbench.action.decreaseViewHeight"] | |
}, | |
{ | |
// Decrease window width | |
"before": ["<C-left>"], | |
"commands": ["workbench.action.decreaseViewWidth"] | |
}, | |
{ | |
// Increase window width | |
"before": ["<C-Right>"], | |
"commands": ["workbench.action.increaseViewWidth"] | |
}, | |
{ | |
// Move down | |
"before": ["<A-j>"], | |
"commands": ["editor.action.moveLinesDownAction"] | |
}, | |
{ | |
// Move up | |
"before": ["<A-k>"], | |
"commands": ["editor.action.moveLinesUpAction"] | |
}, | |
{ | |
// Prev buffer | |
"before": ["<S-h>"], | |
"commands": [":bprev"] | |
}, | |
{ | |
// Next buffer | |
"before": ["<S-l>"], | |
"commands": [":bnext"] | |
}, | |
{ | |
// Prev buffer | |
"before": ["[", "b"], | |
"commands": [":bprev"] | |
}, | |
{ | |
// Next buffer | |
"before": ["]", "b"], | |
"commands": [":bnext"] | |
}, | |
{ | |
// Switch to Other Buffer | |
"before": ["<leader>", "b", "b"], | |
"commands": ["workbench.action.openPreviousEditor"] | |
}, | |
// { | |
// // Switch to Other Buffer | |
// "before": ["<leader>", "`"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Escape and clear hlsearch | |
// "before": ["<esc>"], | |
// "commands": ["N/A - current VSCode behaviour"] | |
// }, | |
{ | |
// Redraw / clear hlsearch / diff update | |
"before": ["<leader>", "u", "r"], | |
"commands": ["workbench.action.reloadWindow"] | |
}, | |
{ | |
"before": ["g", "w"], | |
"after": ["*"] | |
}, | |
// { | |
// // Next search result | |
// "before": ["n"], | |
// "commands": ["N/A - current VSCode behaviour"] | |
// }, | |
// { | |
// // Prev search result | |
// "before": ["N"], | |
// "commands": ["N/A - current VSCode behaviour"] | |
// }, | |
// { | |
// // Save file | |
// "before": ["<C-s"], | |
// "commands": ["N/A - current VSCode behaviour"] | |
// }, | |
{ | |
// Lazy | |
"before": ["<leader>", "l"], | |
"commands": ["workbench.view.extensions"] | |
}, | |
{ | |
// New File | |
"before": ["<leader>", "f", "n"], | |
"commands": ["workbench.action.files.newUntitledFile"] | |
}, | |
// { | |
// // Location List | |
// "before": ["<leader>", "x", "l"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Quickfix List | |
// "before": ["<leader>","x", "q"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle format on Save | |
// "before": ["<leader>", "u", "f"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle spelling | |
// "before": ["<leader>", "u", "s"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Toggle Word Wrap | |
"before": ["<leader>", "u", "w"], | |
"commands": ["editor.action.toggleWordWrap"] | |
}, | |
// { | |
// // Toggle Line Numbers | |
// "before": ["<leader>", "u", "l"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Diagnostics | |
// "before": ["<leader>", "u", "d"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Conceal | |
// "before": ["<leader>", "u", "c"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Inlay Hints | |
// "before": ["<leader>", "u", "h"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Lazygit (root dir) | |
"before": ["<leader>", "g", "g"], | |
"commands": ["workbench.view.scm"], | |
"when": "workbench.scm.active" | |
}, | |
{ | |
// Lazygit (cwd) | |
"before": ["<leader>", "g", "G"], | |
"commands": ["workbench.view.scm"], | |
"when": "workbench.scm.active" | |
}, | |
{ | |
// Quit all | |
"before": ["<leader>", "q", "q"], | |
"commands": ["workbench.action.quit"] | |
}, | |
{ | |
// Quit all | |
"before": ["<leader>", "u", "z"], | |
"commands": ["workbench.action.quit"] | |
}, | |
// { | |
// // Inspect Pos | |
// "before": ["<leader>", "u", "i"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// LazyVim Changelog | |
"before": ["<leader>", "L"], | |
"commands": ["update.showCurrentReleaseNotes"] | |
}, | |
{ | |
// Terminal (root dir) | |
"before": ["<leader>", "f", "t"], | |
"commands": ["workbench.action.createTerminalEditor"], | |
"when": "terminal.active" | |
}, | |
{ | |
// Terminal (cwd) | |
"before": ["<leader>", "f", "T"], | |
"commands": ["workbench.action.createTerminalEditor"], | |
"when": "terminal.active" | |
}, | |
// { | |
// // Terminal (root dir) | |
// "before": ["<C-/>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Which Key Ignore | |
// "before": ["<C-_>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Enter Normal Mode | |
// "before": ["<esc>", "<esc>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Hide Terminal | |
// "before": ["<C-/>"], | |
// "commands": ["N/A - binding not possible in VSCode"], | |
// }, | |
// { | |
// // Other window | |
// "before": ["<leader>", "w", "w"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Delete window | |
// "before": ["<leader>", "d", "w"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Split window below | |
// "before": ["<leader>", "w", "-"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Split window right | |
// "before": ["<leader>", "w", "|"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Split window below | |
// "before": ["<leader>", "-"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Split window right | |
// "before": ["<leader>", "|"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Last Tab | |
// "before": ["<leader>", "<tab>", "l"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // First Tab | |
// "before": ["<leader>", "<tab>", "f"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // New Tab | |
// "before": ["<leader>", "<tab>", "<tab>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Next Tab | |
// "before": ["<leader>", "<tab>", "]"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Close Tab | |
// "before": ["<leader>", "<tab>", "d"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Previous Tab | |
// "before": ["<leader>", "<tab>", "["], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// LSP | |
{ | |
// Line Diagnostics | |
"before": ["<leader>", "c", "d"], | |
"commands": ["editor.action.showHover"], | |
"when": "workbench.panel.output.active" | |
}, | |
{ | |
// LSP info | |
"before": ["<leader>", "c", "l"], | |
"commands": ["workbench.action.output.toggleOutput"] | |
}, | |
{ | |
// Goto Definition | |
"before": ["g", "d"], | |
"commands": ["editor.action.revealDefinition"] | |
}, | |
{ | |
// References | |
"before": ["g", "r"], | |
"commands": ["editor.action.goToReferences"] | |
}, | |
{ | |
// Goto Declaration | |
"before": ["g", "D"], | |
"commands": ["editor.action.revealDeclaration"] | |
}, | |
{ | |
// Goto Implementation | |
"before": ["g", "I"], | |
"commands": ["editor.action.goToImplementation"] | |
}, | |
{ | |
// Goto T[y]pe Definition | |
"before": ["g", "y"], | |
"commands": ["editor.action.goToTypeDefinition"] | |
}, | |
{ | |
// Hover | |
"before": ["K"], | |
"commands": ["editor.action.showHover"] | |
}, | |
{ | |
// Signature Help | |
"before": ["g", "K"], | |
"commands": ["editor.action.triggerParameterHints"], | |
"when": "editorHasSignatureHelpProvider && editorTextFocus" | |
}, | |
{ | |
// Signature Help | |
"before": ["<C-k>"], | |
"commands": ["editor.action.triggerParameterHints"], | |
"when": "editorHasSignatureHelpProvider && editorTextFocus" | |
}, | |
{ | |
// Next Diagnostic | |
"before": ["]", "d"], | |
"commands": ["editor.action.marker.next"], | |
"when": "editorFocus" | |
}, | |
{ | |
// Prev Diagnostic | |
"before": ["[", "d"], | |
"commands": ["editor.action.marker.prev"], | |
"when": "editorFocus" | |
}, | |
{ | |
// Next Error | |
"before": ["]", "e"], | |
"commands": ["editor.action.marker.next"], | |
"when": "editorFocus" | |
}, | |
{ | |
// Prev Error | |
"before": ["[", "e"], | |
"commands": ["editor.action.marker.prev"], | |
"when": "editorFocus" | |
}, | |
{ | |
// Next Warning | |
"before": ["]", "w"], | |
"commands": ["editor.action.marker.next"], | |
"when": "editorFocus" | |
}, | |
{ | |
// Prev Warning | |
"before": ["[", "w"], | |
"commands": ["editor.action.marker.prev"], | |
"when": "editorFocus" | |
}, | |
{ | |
// Format Document | |
"before": ["<leader>", "c", "f"], | |
"commands": ["editor.action.formatDocument"], | |
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" | |
}, | |
// { | |
// // Format Range | |
// "before": ["<leader>", "c", "f"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Code Action | |
"before": ["<leader>", "c", "a"], | |
"commands": ["editor.action.quickFix"], | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
// Source Action | |
"before": ["<leader>", "c", "A"], | |
"commands": ["editor.action.quickFix"], | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
// Rename | |
"before": ["<leader>", "c", "r"], | |
"commands": ["editor.action.rename"], | |
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
}, | |
// BUFFERLINE.NVIM | |
{ | |
// Toggle pin | |
// NOTE: Separate commands required due to VSCode limitations | |
// pin | |
"before": ["<leader>", "b", "p"], | |
"commands": ["workbench.action.pinEditor"], | |
"when": "!activeEditorIsPinned" | |
}, | |
{ | |
// Toggle pin | |
// NOTE: Separate commands required due to VSCode limitations | |
// unpin | |
"before": ["<leader>", "b", "u"], | |
"commands": ["workbench.action.unpinEditor"], | |
"when": "activeEditorIsPinned" | |
}, | |
{ | |
// Delete non-pinned buffers | |
"before": ["<leader>", "b", "P"], | |
"commands": ["workbench.action.closeAllEditors"] | |
}, | |
// FLASH.NVIM | |
// { | |
// // Flash | |
// "before": ["s"], | |
// "commands": ["BINDING IN vim.normalModeKeyBindingsNonRecursive"] | |
// }, | |
// { | |
// // Flash Treesitter | |
// "before": ["S"], | |
// "commands": ["BINDING IN vim.normalModeKeyBindingsNonRecursive"] | |
// }, | |
// { | |
// // Remote Treesitter | |
// "before": ["r"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Treesitter Search | |
// "before": ["R"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Flash Search | |
// "before": ["<c-s>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// MASON.NVIM | |
// { | |
// // Mason | |
// "before": ["<leader>", "c", "m"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// MINI.BUFREMOVE | |
{ | |
// Delete Buffer | |
"before": ["<leader>", "b", "d"], | |
"commands": ["workbench.action.closeActiveEditor"] | |
}, | |
// { | |
// // Delete Buffer (Force) | |
// "before": ["<leader>", "b", "D"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// MINI.SURROUND | |
// { | |
// // Add surrounding | |
// "before": ["g", "z", "a"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Delete surrounding | |
// "before": ["g", "z", "d"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Find right surrounding | |
// "before": ["g", "z", "f"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Find left surrounding | |
// "before": ["g", "z", "F"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Highlight surrounding | |
// "before": ["g", "z", "h"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Replace surrounding | |
// "before": ["g", "z", "r"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Update MiniSurround.config.n_lines | |
// "before": ["g", "z", "n"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NEO-TREE.NVIM | |
{ | |
// Explorer NeoTree (root dir) | |
"before": ["<leader>", "fe"], | |
"commands": ["workbench.files.action.showActiveFileInExplorer"] | |
}, | |
{ | |
// Explorer NeoTree (cwd) | |
"before": ["<leader>", "fE"], | |
"commands": ["workbench.explorer.fileView.toggleVisibility"] | |
}, | |
{ | |
// Explorer NeoTree (root dir) | |
"before": ["<leader>", "e"], | |
"commands": ["workbench.files.action.showActiveFileInExplorer"] | |
}, | |
{ | |
// Explorer NeoTree (cwd) | |
"before": ["<leader>", "E"], | |
"commands": ["workbench.explorer.fileView.toggleVisibility"] | |
}, | |
// NOICE.NVIM | |
// { | |
// // Redirect Cmdline | |
// "before": ["<S-Enter>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Noice Last Message | |
"before": ["<leader>", "s", "n", "l"], | |
"commands": ["workbench.action.output.toggleOutput"], | |
"when": "workbench.panel.output.active" | |
}, | |
{ | |
// Noice History | |
"before": ["<leader>", "s", "n", "h"], | |
"commands": ["workbench.action.output.toggleOutput"], | |
"when": "workbench.panel.output.active" | |
}, | |
{ | |
// Noice All | |
"before": ["<leader>", "s", "n", "a"], | |
"commands": ["workbench.action.output.toggleOutput"], | |
"when": "workbench.panel.output.active" | |
}, | |
// { | |
// // Dismiss All | |
// "before": ["<leader>", "s", "n", "d"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Scroll forward | |
// "before": ["<c-f>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Scroll backward | |
// "before": ["<c-b>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NVIM-NOTIFY | |
// { | |
// // Dismiss all Notifications | |
// "before": ["<leader>", "u", "n"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NVIM-SPECTRE | |
{ | |
// Replace in files (Spectre) | |
"before": ["<leader>", "s", "r"], | |
"commands": ["editor.action.startFindReplaceAction"], | |
"when": "editorFocus || editorIsOpen" | |
}, | |
// NVIM-TREESITTER | |
// { | |
// // Increment selection | |
// "before": ["<c-space>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Decrement selection | |
// "before": ["<bs>"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// PERSISTENCE.NVIM | |
// { | |
// // Restore Session | |
// "before": ["<leader>", "q", "s"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Restore Last Session | |
// "before": ["<leader>", "q", "l"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Don't Save Current Session | |
// "before": ["<leader>", "q", "d"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// TELESCOPE.NVIM | |
{ | |
// Grep (root dir) | |
"before": ["<leader>", "/"], | |
"commands": ["workbench.action.findInFiles"] | |
}, | |
// { | |
// // Command History | |
// "before": ["<leader>", ":"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Find Files (root dir) | |
"before": ["<leader>", "<space>"], | |
"commands": ["workbench.action.quickOpen"] | |
}, | |
{ | |
// Buffers | |
"before": ["<leader>", "f", "b"], | |
"commands": ["workbench.action.quickOpen"] | |
}, | |
{ | |
// Find Files (root dir) | |
"before": ["<leader>", "f", "f"], | |
"commands": ["workbench.action.quickOpen"] | |
}, | |
{ | |
// Find Files (cwd) | |
"before": ["<leader>", "f", "F"], | |
"commands": ["workbench.action.quickOpen"] | |
}, | |
{ | |
// Recent | |
"before": ["<leader>", "f", "r"], | |
"commands": ["workbench.action.quickOpen"] | |
}, | |
{ | |
// Recent (cwd) | |
"before": ["<leader>", "f", "R"], | |
"commands": ["workbench.action.quickOpen"] | |
}, | |
{ | |
// commits | |
"before": ["<leader>", "g", "c"], | |
"commands": ["workbench.view.scm"], | |
"when": "workbench.scm.active" | |
}, | |
{ | |
// status | |
"before": ["<leader>", "g", "s"], | |
"commands": ["workbench.view.scm"], | |
"when": "workbench.scm.active" | |
}, | |
// { | |
// // Registers | |
// "before": ['<leader>", "s", '"'], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Auto Commands | |
// "before": ["<leader>", "s", "a"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Buffer | |
"before": ["<leader>", "s", "b"], | |
"commands": ["editor.action.startFindReplaceAction"], | |
"when": "editorFocus || editorIsOpen" | |
}, | |
// { | |
// // Command History | |
// "before": ["<leader>", "s", "c"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Commands | |
"before": ["<leader>", "s", "C"], | |
"commands": ["workbench.action.showCommands"] | |
}, | |
{ | |
// Document diagnostics | |
"before": ["<leader>", "s", "d"], | |
"commands": ["workbench.actions.view.problems"], | |
"when": "workbench.panel.markers.view.active" | |
}, | |
{ | |
// Workspace diagnostics | |
"before": ["<leader>", "s", "D"], | |
"commands": ["workbench.actions.view.problems"], | |
"when": "workbench.panel.markers.view.active" | |
}, | |
{ | |
// Grep (root dir) | |
"before": ["<leader>", "s", "g"], | |
"commands": ["workbench.action.findInFiles"] | |
}, | |
{ | |
// Grep (cwd) | |
"before": ["<leader>", "s", "G"], | |
"commands": ["workbench.action.findInFiles"] | |
}, | |
{ | |
// Help Pages | |
"before": ["<leader>", "s", "h"], | |
"commands": ["workbench.action.openDocumentationUrl"] | |
}, | |
// { | |
// // Search Highlight Groups | |
// "before": ["<leader>", "s", "H"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Key Maps | |
"before": ["<leader>", "s", "k"], | |
"commands": ["workbench.action.showCommands"] | |
}, | |
// { | |
// // Man Pages | |
// "before": ["<leader>", "s", "M"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Jump to Mark | |
// "before": ["<leader>", "s", "m"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Options | |
// "before": ["<leader>", "s", "o"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Resume | |
// "before": ["<leader>", "s", "R"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Word (root dir) | |
// "before": ["<leader>", "s", "w"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Word (cwd) | |
// "before": ["<leader>", "s", "W"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Selection (root dir) | |
// "before": ["<leader>", "s", "w"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Selection (cwd) | |
// "before": ["<leader>", "s", "W"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
{ | |
// Colorscheme with preview | |
"before": ["<leader>", "u", "C"], | |
"commands": ["workbench.action.selectTheme"] | |
} | |
// { | |
// // Goto Symbol | |
// "before": ["<leader>", "s", "s"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Goto Symbol (Workspace) | |
// "before": ["<leader>", "s", "S"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// TODO-COMMENTS.NVIM | |
// { | |
// // Next todo comment | |
// "before": ["]t"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Previous todo comment | |
// "before": ["[t"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Todo (Trouble) | |
// "before": ["<leader>xt"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Todo/Fix/Fixme (Trouble) | |
// "before": ["<leader>xT"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Todo | |
// "before": ["<leader>st"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Todo/Fix/Fixme | |
// "before": ["<leader>sT"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// TROUBLE.NVIM | |
// { | |
// // Document Diagnostics (Trouble) | |
// "before": ["<leader>xx"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Workspace Diagnostics (Trouble) | |
// "before": ["<leader>xX"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Location List (Trouble) | |
// "before": ["<leader>xL"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Quickfix List (Trouble) | |
// "before": ["<leader>xQ"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Previous trouble/quickfix item | |
// "before": ["[q"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Next trouble/quickfix item | |
// "before": ["]q"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// VIM-ILLUMINATE | |
// { | |
// // Next Reference | |
// "before": ["]]"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Prev Reference | |
// "before": ["[["], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// YANKY.NVIM | |
// { | |
// // Open Yank History | |
// "before": ["<leader>p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Yank text | |
// "before": ["y"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put yanked text after cursor | |
// "before": ["p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put yanked text before cursor | |
// "before": ["P"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put yanked text after selection | |
// "before": ["gp"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put yanked text before selection | |
// "before": ["gP"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Cycle forward through yank history | |
// "before": ["[y"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Cycle backward through yank history | |
// "before": ["]y"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put indented after cursor (linewise) | |
// "before": ["]p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put indented before cursor (linewise) | |
// "before": ["[p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put indented after cursor (linewise) | |
// "before": ["]P"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put indented before cursor (linewise) | |
// "before": ["[P"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put and indent right | |
// "before": [">p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put and indent left | |
// "before": ["<p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put before and indent right | |
// "before": [">P"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put before and indent left | |
// "before": ["<P"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put after applying a filter | |
// "before": ["=p"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Put before applying a filter | |
// "before": ["=P"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NVIM-DAP | |
// { | |
// // Breakpoint Condition | |
// "before": ["<leader>dB"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Breakpoint | |
// "before": ["<leader>db"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Continue | |
// "before": ["<leader>dc"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Run to Cursor | |
// "before": ["<leader>dC"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Go to line (no execute) | |
// "before": ["<leader>dg"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Step Into | |
// "before": ["<leader>di"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Down | |
// "before": ["<leader>dj"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Up | |
// "before": ["<leader>dk"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Run Last | |
// "before": ["<leader>dl"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Step Out | |
// "before": ["<leader>do"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Step Over | |
// "before": ["<leader>dO"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Pause | |
// "before": ["<leader>dp"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle REPL | |
// "before": ["<leader>dr"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Session | |
// "before": ["<leader>ds"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Terminate | |
// "before": ["<leader>dt"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Widgets | |
// "before": ["<leader>dw"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NVIM-DAP-UI | |
// { | |
// // Dap UI | |
// "before": ["<leader>du"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Eval | |
// "before": ["<leader>de"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// ONE-SMALL-STEP-FOR-VIMKIND | |
// { | |
// // Adapter Lua Server | |
// "before": ["<leader>daL"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Adapter Lua | |
// "before": ["<leader>dal"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// FLIT.NVIM | |
// { | |
// // f | |
// "before": ["f"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // F | |
// "before": ["F"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // t | |
// "before": ["t"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // T | |
// "before": ["T"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// LEAP.NVIM | |
// { | |
// // Leap forward to | |
// "before": ["s"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Leap backward to | |
// "before": ["S"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Leap from windows | |
// "before": ["gs"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// MINI.FILES | |
// { | |
// // Open mini.files (directory of current file) | |
// "before": ["<leader>fm"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Open mini.files (cwd) | |
// "before": ["<leader>fM"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NVIM-DAP-PYTHON | |
// { | |
// // Debug Method | |
// "before": ["<leader>dPt"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Debug Class | |
// "before": ["<leader>dPc"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// VENV-SELECTOR.NVIM | |
// { | |
// // Select VirtualEnv | |
// "before": ["<leader>cv"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NEOTEST | |
// { | |
// // Run File | |
// "before": ["<leader>tt"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Run All Test Files | |
// "before": ["<leader>tT"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Run Nearest | |
// "before": ["<leader>tr"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Summary | |
// "before": ["<leader>ts"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Show Output | |
// "before": ["<leader>to"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Toggle Output Panel | |
// "before": ["<leader>tO"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Stop | |
// "before": ["<leader>tS"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// NVIM-DAP | |
// { | |
// // Debug Nearest | |
// "before": ["<leader>td"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// EDGY.NVIM | |
// { | |
// // Edgy Toggle | |
// "before": ["<leader>ue"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// { | |
// // Edgy Select Window | |
// "before": ["<leader>uE"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
// PROJECT.NVIM | |
// { | |
// // Projects | |
// "before": ["<leader>fp"], | |
// "commands": ["N/A - no VSCode equivalent"] | |
// }, | |
], | |
"vim.visualModeKeyBindings": [ | |
{ | |
"before": ["<"], | |
"after": ["<", "g", "v"] | |
}, | |
{ | |
"before": [">"], | |
"after": [">", "g", "v"] | |
} | |
], | |
"vim.insertModeKeyBindings": [], | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment