better prefixes
This commit is contained in:
parent
07f6506c5c
commit
843ab62e01
|
@ -76,9 +76,9 @@ map('n', 'zh', 'z4h')
|
|||
-- ===
|
||||
|
||||
-- Yank to system clipboard
|
||||
map({'n', 'v', 'x'}, '<leader>y', '"+y"')
|
||||
map({'n', 'v', 'x'}, '<leader>yy', '"+yy"')
|
||||
map({'n', 'v', 'x'}, '<leader>Y', '"+Y"')
|
||||
map({'n', 'v', 'x'}, '<leader>y', '"+y"', { desc = "yank to system"})
|
||||
map({'n', 'v', 'x'}, '<leader>yy', '"+yy"', { desc = "yank line to system"})
|
||||
map({'n', 'v', 'x'}, '<leader>Y', '"+Y"', { desc = "yank to system until line end"})
|
||||
|
||||
-- Yank buffer's relative path to clipboard
|
||||
map('n', '<Leader>yp', function()
|
||||
|
@ -140,7 +140,7 @@ map('x', '<UP>', ":move'<-2<CR>gv=gv", { desc = 'Move selection up' })
|
|||
map('x', '<DOWN>', ":move'>+<CR>gv=gv", { desc = 'Move selection down' })
|
||||
|
||||
-- Remove spaces at the end of lines
|
||||
map('n', '<Leader>cw', '<cmd>lua MiniTrailspace.trim()<CR>', { desc = 'Erase Whitespace' })
|
||||
map('n', '<Leader>fw', '<cmd>lua MiniTrailspace.trim()<CR>', { desc = 'Erase Whitespace' })
|
||||
|
||||
-- Search & Replace
|
||||
-- ===
|
||||
|
|
|
@ -237,6 +237,7 @@ return {
|
|||
},
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
-- NOTE: THIS SECTION CONTAINS THE PREFIXES!
|
||||
{
|
||||
'folke/which-key.nvim',
|
||||
event = 'VeryLazy',
|
||||
|
@ -261,6 +262,9 @@ return {
|
|||
['<leader>x'] = { name = '+diagnostics/quickfix' },
|
||||
['<leader>z'] = { name = '+notes' },
|
||||
['<leader>w'] = { name = '+window' },
|
||||
['<leader>f'] = { name = '+formatting' },
|
||||
['<leader>m'] = { name = '+marks/misc' },
|
||||
['<leader>md'] = { name = '+line-diffs' },
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
|
|
Loading…
Reference in New Issue