mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
chore(docs): update nvim keybindings
This commit is contained in:
@@ -36,8 +36,16 @@ return {
|
||||
|
||||
-- ── Code ────────────────────────────────────────────────────────────
|
||||
{ '<leader>c', group = '[c] Code' },
|
||||
{ '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', desc = 'LSP: Code Action' },
|
||||
{ '<leader>cg', '<cmd>lua require("neogen").generate()<CR>', desc = 'Generate annotations' },
|
||||
{
|
||||
'<leader>ca',
|
||||
'<cmd>lua vim.lsp.buf.code_action()<CR>',
|
||||
desc = 'LSP: Code Action',
|
||||
},
|
||||
{
|
||||
'<leader>cg',
|
||||
'<cmd>lua require("neogen").generate()<CR>',
|
||||
desc = 'Generate annotations',
|
||||
},
|
||||
|
||||
-- Code: treesj
|
||||
{ '<leader>cc', group = 'Code Split/Join' },
|
||||
@@ -369,13 +377,17 @@ return {
|
||||
{
|
||||
{
|
||||
'<leader>?w',
|
||||
'<cmd>lua require("which-key").show({global = false})<cr>',
|
||||
'<cmd>lua require("which-key").show({global = true})<cr>',
|
||||
desc = 'Buffer Local Keymaps (which-key)',
|
||||
},
|
||||
},
|
||||
|
||||
-- ── Misc ────────────────────────────────────────────────────────────
|
||||
{ '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', desc = 'LSP: Type Definition' },
|
||||
{
|
||||
'<leader>D',
|
||||
'<cmd>lua vim.lsp.buf.type_definition()<CR>',
|
||||
desc = 'LSP: Type Definition',
|
||||
},
|
||||
{ '<leader>e', '<cmd>Neotree reveal<CR>', desc = 'NeoTree reveal' },
|
||||
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -2,98 +2,12 @@
|
||||
|
||||
```txt
|
||||
|
||||
n <Space>/ * <Lua 380: ~/.config/nvim/lua/plugins/telescope.lua:82>
|
||||
n <Space>/ * <Lua 196: ~/.config/nvim/lua/plugins/telescope.lua:68>
|
||||
[/] Fuzzily search in current buffer]
|
||||
n <Space>hw * <Lua 42: ~/.config/nvim/lua/plugins/harpoon.lua:40>
|
||||
Open harpoon window with telescope
|
||||
n <Space>1 * <Lua 40: ~/.config/nvim/lua/plugins/harpoon.lua:68>
|
||||
harpoon to file 1
|
||||
n <Space>hn * <Lua 39: ~/.config/nvim/lua/plugins/harpoon.lua:61>
|
||||
harpoon to next file
|
||||
n <Space>hp * <Lua 38: ~/.config/nvim/lua/plugins/harpoon.lua:54>
|
||||
harpoon to previous file
|
||||
n <Space>ha * <Lua 37: ~/.config/nvim/lua/plugins/harpoon.lua:47>
|
||||
harpoon file
|
||||
n <Space>5 * <Lua 36: ~/.config/nvim/lua/plugins/harpoon.lua:96>
|
||||
harpoon to file 5
|
||||
n <Space>4 * <Lua 35: ~/.config/nvim/lua/plugins/harpoon.lua:89>
|
||||
harpoon to file 4
|
||||
n <Space>3 * <Lua 34: ~/.config/nvim/lua/plugins/harpoon.lua:82>
|
||||
harpoon to file 3
|
||||
n <Space>2 * <Lua 33: ~/.config/nvim/lua/plugins/harpoon.lua:75>
|
||||
harpoon to file 2
|
||||
n <Space>tc * <Cmd>CloakToggle<CR>
|
||||
[tc] Toggle Cloak
|
||||
n <Space>xx * <Cmd>Trouble<CR>
|
||||
Toggle Trouble
|
||||
n <Space>xq * <Cmd>Trouble quickfix<CR>
|
||||
Toggle Quickfix
|
||||
n <Space>xl * <Cmd>Trouble loclist<CR>
|
||||
Toggle Loclist
|
||||
n <Space>xd * <Cmd>Trouble document_diagnostics<CR>
|
||||
Toggle Document Diagnostics
|
||||
n <Space>xw * <Cmd>Trouble workspace_diagnostics<CR>
|
||||
Toggle Workspace Diagnostics
|
||||
n <Space>?s * <Cmd>Neoconf show<CR>
|
||||
Neoconf: Show merged config
|
||||
n <Space>?m * <Cmd>Neoconf lsp<CR>
|
||||
Neoconf: Show merged LSP config
|
||||
n <Space>?l * <Cmd>Neoconf local<CR>
|
||||
Neoconf: Local
|
||||
n <Space>?g * <Cmd>Neoconf global<CR>
|
||||
Neoconf: Global
|
||||
n <Space>?c * <Cmd>Neoconf<CR>
|
||||
Neoconf: Open
|
||||
n <Space>wl * <Cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>
|
||||
LSP: Workspace List Folders
|
||||
n <Space>wr * <Cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>
|
||||
LSP: Workspace Remove Folder
|
||||
n <Space>wa * <Cmd>lua vim.lsp.buf.add_workspace_folder()<CR>
|
||||
LSP: Workspace Add Folder
|
||||
n <Space>ws * <Cmd>lua require("telescope.builtin").lsp_dynamic_workspace_symbols()<CR>
|
||||
LSP: Workspace Symbols
|
||||
n <Space>ds * <Cmd>lua require("telescope.builtin").lsp_document_symbols()<CR>
|
||||
LSP: Document Symbols
|
||||
n <Space>D * <Cmd>lua vim.lsp.buf.type_definition()<CR>
|
||||
LSP: Type Definition
|
||||
n <Space>ca * <Cmd>lua vim.lsp.buf.code_action()<CR>
|
||||
LSP: Code Action
|
||||
n <Space>cr * <Cmd>lua vim.lsp.buf.rename()<CR>
|
||||
LSP: Rename
|
||||
n <Space>dq * <Cmd>lua vim.diagnostic.setloclist()<CR>
|
||||
Diagnostic: Set loc list
|
||||
n <Space>do * <Cmd>lua vim.diagnostic.open_float()<CR>
|
||||
Diagnostic: Open float
|
||||
<Space>cf * <Lua 107: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
[f] Format buffer
|
||||
n <Space>e * <Lua 81: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
NeoTree reveal
|
||||
n <Space>cg * <Lua 50: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Generate annotations
|
||||
n <Space>zm * <Lua 49: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search mappings.
|
||||
n <Space>zh * <Lua 48: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search history of opened files
|
||||
n <Space>zb * <Lua 47: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search open buffers.
|
||||
n <Space>zt * <Lua 46: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search open tabs.
|
||||
n <Space>zc * <Lua 32: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search commands.
|
||||
n <Space>zf * <Lua 31: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search for files in given path.
|
||||
n <Space>zg * <Lua 25: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search with rg (aka live grep).
|
||||
n <Space>dc * <Lua 45: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
DAP: Continue
|
||||
n <Space>db * <Lua 44: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
DAP: Toggle Breakpoint
|
||||
n <Space>dt * <Lua 43: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
DAP: Toggle UI
|
||||
n <Space>ht * <Lua 369: ~/.config/nvim/lua/plugins/harpoon.lua:16>
|
||||
n <Space>ht * <Lua 192: ~/.config/nvim/lua/plugins/harpoon.lua:43>
|
||||
Open Harpoon Quick menu
|
||||
n <Space>dr * <Lua 41: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
DAP: Reset
|
||||
n <Space>hw * <Lua 189: ~/.config/nvim/lua/plugins/harpoon.lua:37>
|
||||
Open harpoon window with telescope
|
||||
x # * <Lua 7: vim/_defaults.lua:0>
|
||||
:help v_#-default
|
||||
o % <Plug>(MatchitOperationForward)
|
||||
@@ -105,13 +19,20 @@ x * * <Lua 3: vim/_defaults.lua:0>
|
||||
:help v_star-default
|
||||
x @ * mode() == 'V' ? ':normal! @'.getcharstr().'<CR>' : '@'
|
||||
:help v_@-default
|
||||
n K * <Cmd>lua vim.lsp.buf.hover()<CR>
|
||||
LSP: Hover Documentation
|
||||
x Q * mode() == 'V' ? ':normal! @<C-R>=reg_recorded()<CR><CR>' : 'Q'
|
||||
:help v_Q-default
|
||||
x S <Plug>VSurround
|
||||
x R * <Lua 70: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Treesitter Search
|
||||
o R * <Lua 69: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Treesitter Search
|
||||
n Y * y$
|
||||
:help Y-default
|
||||
o Zk * <Lua 67: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Flash Treesitter
|
||||
x Zk * <Lua 66: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Flash Treesitter
|
||||
n Zk * <Lua 59: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Flash Treesitter
|
||||
o [% <Plug>(MatchitOperationMultiBackward)
|
||||
x [% <Plug>(MatchitVisualMultiBackward)
|
||||
n [% <Plug>(MatchitNormalMultiBackward)
|
||||
@@ -123,27 +44,23 @@ n ]% <Plug>(MatchitNormalMultiForward)
|
||||
n ]d * <Lua 14: vim/_defaults.lua:0>
|
||||
Jump to the next diagnostic
|
||||
x a% <Plug>(MatchitVisualTextObject)
|
||||
n cS <Plug>CSurround
|
||||
n cs <Plug>Csurround
|
||||
n ds <Plug>Dsurround
|
||||
n dp * <Cmd>lua vim.diagnostic.goto_prev()<CR>
|
||||
Diagnostic: Goto Prev
|
||||
n dn * <Cmd>lua vim.diagnostic.goto_next()<CR>
|
||||
Diagnostic: Goto Next
|
||||
n gR * :RegexplainerToggle<CR>
|
||||
Toggle Regexplainer
|
||||
o g% <Plug>(MatchitOperationBackward)
|
||||
x g% <Plug>(MatchitVisualBackward)
|
||||
n g% <Plug>(MatchitNormalBackward)
|
||||
x gS <Plug>VgSurround
|
||||
n gR * :RegexplainerToggle<CR>
|
||||
Toggle Regexplainer
|
||||
n gD * <Cmd>lua vim.lsp.buf.declaration()<CR>
|
||||
LSP: Goto Declaration
|
||||
n gd * <Cmd>lua vim.lsp.buf.definition()<CR>
|
||||
LSP: Goto Definition
|
||||
n gr * <Cmd>lua require("telescope.builtin").lsp_references()<CR>
|
||||
LSP: Goto References
|
||||
n gI * <Cmd>lua vim.lsp.buf.implementation()<CR>
|
||||
LSP: Goto Implementation
|
||||
n gP * <Lua 52: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:132>
|
||||
Close preview windows
|
||||
n gpr * <Lua 25: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:114>
|
||||
Preview references
|
||||
n gpD * <Lua 244: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:105>
|
||||
Preview declaration
|
||||
n gpi * <Lua 242: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:91>
|
||||
Preview implementation
|
||||
n gpt * <Lua 241: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:77>
|
||||
Preview type definition
|
||||
n gpd * <Lua 237: ~/.local/share/nvim/lazy/goto-preview/lua/goto-preview.lua:63>
|
||||
Preview definition
|
||||
o gc * <Lua 13: vim/_defaults.lua:0>
|
||||
Comment textobject
|
||||
n gcc * <Lua 12: vim/_defaults.lua:0>
|
||||
@@ -160,13 +77,14 @@ n j * v:count == 0 ? 'gj' : 'j'
|
||||
Move down
|
||||
n k * v:count == 0 ? 'gk' : 'k'
|
||||
Move up
|
||||
n n * <Lua 51: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Twilight
|
||||
n ySS <Plug>YSsurround
|
||||
n ySs <Plug>YSsurround
|
||||
n yss <Plug>Yssurround
|
||||
n yS <Plug>YSurround
|
||||
n ys <Plug>Ysurround
|
||||
o r * <Lua 68: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Remote Flash
|
||||
o zk * <Lua 65: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Flash
|
||||
x zk * <Lua 64: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Flash
|
||||
n zk * <Lua 63: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
Flash
|
||||
x <Plug>(MatchitVisualTextObject) <Plug>(MatchitVisualMultiBackward)o<Plug>(MatchitVisualMultiForward)
|
||||
o <Plug>(MatchitOperationMultiForward) * :<C-U>call matchit#MultiMatch("W", "o")<CR>
|
||||
o <Plug>(MatchitOperationMultiBackward) * :<C-U>call matchit#MultiMatch("bW", "o")<CR>
|
||||
@@ -180,44 +98,29 @@ x <Plug>(MatchitVisualBackward) * :<C-U>call matchit#Match_wrapper('',0,'v')<CR
|
||||
x <Plug>(MatchitVisualForward) * :<C-U>call matchit#Match_wrapper('',1,'v')<CR>:if col("''") != col("$") | exe ":normal! m'" | endif<CR>gv``
|
||||
n <Plug>(MatchitNormalBackward) * :<C-U>call matchit#Match_wrapper('',0,'n')<CR>
|
||||
n <Plug>(MatchitNormalForward) * :<C-U>call matchit#Match_wrapper('',1,'n')<CR>
|
||||
v <Plug>VgSurround * :<C-U>call <SNR>27_opfunc(visualmode(),visualmode() ==# 'V' ? 0 : 1)<CR>
|
||||
v <Plug>VSurround * :<C-U>call <SNR>27_opfunc(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR>
|
||||
n <Plug>YSurround * <SNR>27_opfunc2('setup')
|
||||
n <Plug>Ysurround * <SNR>27_opfunc('setup')
|
||||
n <Plug>YSsurround * <SNR>27_opfunc2('setup').'_'
|
||||
n <Plug>Yssurround * '^'.v:count1.<SNR>27_opfunc('setup').'g_'
|
||||
n <Plug>CSurround * :<C-U>call <SNR>27_changesurround(1)<CR>
|
||||
n <Plug>Csurround * :<C-U>call <SNR>27_changesurround()<CR>
|
||||
n <Plug>Dsurround * :<C-U>call <SNR>27_dosurround(<SNR>27_inputtarget())<CR>
|
||||
n <Plug>SurroundRepeat * .
|
||||
n <C-L> * :<C-U>TmuxNavigateRight<CR>
|
||||
n <C-Bslash> * :<C-U>TmuxNavigatePrevious<CR>
|
||||
n <C-J> * :<C-U>TmuxNavigateDown<CR>
|
||||
n <C-H> * :<C-U>TmuxNavigateLeft<CR>
|
||||
n <C-K> * :<C-U>TmuxNavigateUp<CR>
|
||||
s <Plug>luasnip-jump-prev * <Lua 283: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:57>
|
||||
s <Plug>luasnip-jump-prev * <Lua 315: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:57>
|
||||
LuaSnip: Jump to the previous node
|
||||
s <Plug>luasnip-jump-next * <Lua 282: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:54>
|
||||
s <Plug>luasnip-jump-next * <Lua 314: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:54>
|
||||
LuaSnip: Jump to the next node
|
||||
s <Plug>luasnip-prev-choice * <Lua 281: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:51>
|
||||
s <Plug>luasnip-prev-choice * <Lua 313: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:51>
|
||||
LuaSnip: Change to the previous choice from the choiceNode
|
||||
s <Plug>luasnip-next-choice * <Lua 280: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:48>
|
||||
s <Plug>luasnip-next-choice * <Lua 312: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:48>
|
||||
LuaSnip: Change to the next choice from the choiceNode
|
||||
s <Plug>luasnip-expand-snippet * <Lua 279: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:45>
|
||||
s <Plug>luasnip-expand-snippet * <Lua 311: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:45>
|
||||
LuaSnip: Expand the current snippet
|
||||
s <Plug>luasnip-expand-or-jump * <Lua 278: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:42>
|
||||
s <Plug>luasnip-expand-or-jump * <Lua 310: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:42>
|
||||
LuaSnip: Expand or jump in the current snippet
|
||||
<Plug>luasnip-expand-repeat * <Lua 276: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:35>
|
||||
<Plug>luasnip-expand-repeat * <Lua 308: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:35>
|
||||
LuaSnip: Repeat last node expansion
|
||||
n <Plug>luasnip-delete-check * <Lua 274: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:28>
|
||||
n <Plug>luasnip-delete-check * <Lua 306: ~/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:28>
|
||||
LuaSnip: Removes current snippet from jumplist
|
||||
n <Plug>PlenaryTestFile * :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR>
|
||||
n <C-P> * <Lua 26: ~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
|
||||
FZF: search for files starting at current directory.
|
||||
n <C-W><C-D> <C-W>d
|
||||
Show diagnostics under the cursor
|
||||
n <C-W>d * <Lua 16: vim/_defaults.lua:0>
|
||||
Show diagnostics under the cursor
|
||||
n <C-L> * <Cmd>nohlsearch|diffupdate|normal! <C-L><CR>
|
||||
:help CTRL-L-default
|
||||
```
|
||||
|
||||
- Generated on Wed 25 Sep 2024 14:52:25 EEST
|
||||
- Generated on Fri 4 Oct 2024 14:49:00 EEST
|
||||
|
||||
Reference in New Issue
Block a user