better prefixes

This commit is contained in:
Christoph J. Scherr 2023-09-06 19:44:09 +02:00
parent 07f6506c5c
commit 843ab62e01
2 changed files with 8 additions and 4 deletions

View File

@ -76,9 +76,9 @@ map('n', 'zh', 'z4h')
-- === -- ===
-- Yank to system clipboard -- Yank to system clipboard
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"') map({'n', 'v', 'x'}, '<leader>yy', '"+yy"', { desc = "yank line to system"})
map({'n', 'v', 'x'}, '<leader>Y', '"+Y"') map({'n', 'v', 'x'}, '<leader>Y', '"+Y"', { desc = "yank to system until line end"})
-- Yank buffer's relative path to clipboard -- Yank buffer's relative path to clipboard
map('n', '<Leader>yp', function() 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' }) map('x', '<DOWN>', ":move'>+<CR>gv=gv", { desc = 'Move selection down' })
-- Remove spaces at the end of lines -- 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 -- Search & Replace
-- === -- ===

View File

@ -237,6 +237,7 @@ return {
}, },
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- NOTE: THIS SECTION CONTAINS THE PREFIXES!
{ {
'folke/which-key.nvim', 'folke/which-key.nvim',
event = 'VeryLazy', event = 'VeryLazy',
@ -261,6 +262,9 @@ return {
['<leader>x'] = { name = '+diagnostics/quickfix' }, ['<leader>x'] = { name = '+diagnostics/quickfix' },
['<leader>z'] = { name = '+notes' }, ['<leader>z'] = { name = '+notes' },
['<leader>w'] = { name = '+window' }, ['<leader>w'] = { name = '+window' },
['<leader>f'] = { name = '+formatting' },
['<leader>m'] = { name = '+marks/misc' },
['<leader>md'] = { name = '+line-diffs' },
}, },
}, },
config = function(_, opts) config = function(_, opts)