which key mappings
This commit is contained in:
parent
828967eabf
commit
e553116a0b
6
init.lua
6
init.lua
|
@ -301,11 +301,13 @@ require('lazy').setup({
|
|||
|
||||
-- Document existing key chains
|
||||
require('which-key').register {
|
||||
['<leader>q'] = { { "<cmd>confirm q<cr>", "Quit" }, },
|
||||
['<leader>w'] = { { "<cmd>w!<cr>", "Write" }, },
|
||||
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
|
||||
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
|
||||
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
||||
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
||||
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
|
||||
['<leader>i'] = { name = '[I]nformation', _ = 'which_key_ignore' },
|
||||
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
|
||||
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
|
||||
}
|
||||
|
@ -509,7 +511,7 @@ require('lazy').setup({
|
|||
|
||||
-- Fuzzy find all the symbols in your current workspace.
|
||||
-- Similar to document symbols, except searches over your entire project.
|
||||
map('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
|
||||
map('<leader>is', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[I]nformation [S]ymbols')
|
||||
|
||||
-- Rename the variable under your cursor.
|
||||
-- Most Language Servers support renaming across files, etc.
|
||||
|
|
Loading…
Reference in New Issue