style(lua): fix mapping description formatting

This commit is contained in:
sankalp committed 2026-07-03 22:03:44 +05:45
1 parent 0fe748fe4e
commit 9fb2727d7b
1 file changed
+1 -6
+1 -6
View File
@@ -5,7 +5,6 @@ local function map(mode, lhs, rhs, opts)
end end
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
-- Space as leader -- Space as leader
map('n', '<Space>', '', opts) map('n', '<Space>', '', opts)
vim.g.mapleader = ' ' vim.g.mapleader = ' '
@@ -22,7 +21,7 @@ map('t', '<ESC>', '<C-\\><C-n>')
-- Insert Mode Mappings -- Insert Mode Mappings
map('i', 'jk', '<Esc>') map('i', 'jk', '<Esc>')
map('n', '<leader>ps', require('packui').open, {desc = "Open Vim Pack UI"}) map('n', '<leader>ps', require('packui').open, { desc = 'Open Vim Pack UI' })
-- Comments -- Comments
map('n', '<leader>/', 'gcc', { remap = true, desc = 'Toggle comment' }) map('n', '<leader>/', 'gcc', { remap = true, desc = 'Toggle comment' })
map('v', '<leader>/', 'gc', { remap = true, desc = 'Toggle comment' }) map('v', '<leader>/', 'gc', { remap = true, desc = 'Toggle comment' })
@@ -42,10 +41,6 @@ map({ 'n', 'v' }, 'L', '$', { desc = 'Move to the end of the line' })
-- Visual overwrite paste -- Visual overwrite paste
map({ 'v', 'x' }, 'p', '"_dP', opts) map({ 'v', 'x' }, 'p', '"_dP', opts)
-- Paste and auto-indent (context-aware)
map('n', 'p', 'p=`]', { desc = 'Paste and auto-indent' })
map('n', 'P', 'P=`]', { desc = 'Paste before and auto-indent' })
-- Do not copy on x -- Do not copy on x
map({ 'v', 'x' }, 'x', '"_x', opts) map({ 'v', 'x' }, 'x', '"_x', opts)
map('n', 'X', '"_D', opts) map('n', 'X', '"_D', opts)