diff --git a/lua/keys.lua b/lua/keys.lua index b5759a8..6319cde 100644 --- a/lua/keys.lua +++ b/lua/keys.lua @@ -5,7 +5,6 @@ local function map(mode, lhs, rhs, opts) end local opts = { noremap = true, silent = true } - -- Space as leader map('n', '', '', opts) vim.g.mapleader = ' ' @@ -22,7 +21,7 @@ map('t', '', '') -- Insert Mode Mappings map('i', 'jk', '') -map('n', 'ps', require('packui').open, {desc = "Open Vim Pack UI"}) +map('n', 'ps', require('packui').open, { desc = 'Open Vim Pack UI' }) -- Comments map('n', '/', 'gcc', { remap = true, desc = 'Toggle comment' }) map('v', '/', '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 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 map({ 'v', 'x' }, 'x', '"_x', opts) map('n', 'X', '"_D', opts)