diff --git a/.config/nvim/lua/core/keymap.lua b/.config/nvim/lua/core/keymap.lua index 76ceba0..d8f6f9f 100644 --- a/.config/nvim/lua/core/keymap.lua +++ b/.config/nvim/lua/core/keymap.lua @@ -181,23 +181,7 @@ keymap.set('n', 'hB', function() end, opts('Toggle line blame')) keymap.set({ 'o', 'x' }, 'ih', ':Gitsigns select_hunk', opts('Gitsigns select hunk')) --- ────────────────────────────────────────────────( fancy comments )─ -keymap.set({ 'n', 'v' }, 'Cd', 'CBd', opts('Delete comment decoration')) -keymap.set({ 'n', 'v' }, 'Cy', 'CBy', opts('Yank comment')) --- ────────────────────────────────────────────────── comment boxes ── -keymap.set({ 'n', 'v' }, 'Cbl', 'CBllbox12', opts('Insert a comment box')) -keymap.set({ 'n', 'v' }, 'Cbc', 'CBccbox18', opts('Insert a comment box')) -keymap.set({ 'n', 'v' }, 'Cbr', 'CBrrbox15', opts('Insert a comment box')) -keymap.set({ 'n', 'v' }, 'Cba', 'CBccbox6', opts('Insert a callout')) --- ────────────────────────────────────────────────── comment lines ── -keymap.set({ 'n', 'v' }, 'Cll', 'CBclline7', opts('Insert a left-aligned comment line')) -keymap.set({ 'n', 'v' }, 'Clc', 'CBccline7', opts('Insert a centered comment line')) -keymap.set({ 'n', 'v' }, 'Clr', 'CBcrline7', opts('Insert a right-aligned comment line')) -keymap.set({ 'n', 'v' }, 'ClL', 'CBclline', opts('Insert a simple comment line')) -keymap.set({ 'n', 'v' }, 'ClC', 'CBccline', opts('Insert a simple comment line')) -keymap.set({ 'n', 'v' }, 'ClR', 'CBcrline', opts('Insert a simple comment line')) - -- ───────────────────────────────────────────────────( icon picker )─ keymap.set('n', 'i', 'Telescope symbols initial_mode=normal theme=get_ivy', opts('Open icon picker')) -- keymap.set("n", "iy", "IconPickerYank", opts("Yank icon into register")) --> Yank the selected icon into register --- keymap.set("i", "", "Telescope symbols initial_mode=normal theme=get_ivy", opts("Open icon picker")) +-- keymap.set("i", "", "Telescope symbols initial_mode=normal theme=get_ivy", opts("Open icon picker")) \ No newline at end of file diff --git a/.config/nvim/lua/plugins/comment-box.lua b/.config/nvim/lua/plugins/comment-box.lua index d4c26e2..14aadaf 100644 --- a/.config/nvim/lua/plugins/comment-box.lua +++ b/.config/nvim/lua/plugins/comment-box.lua @@ -1,6 +1,5 @@ return { 'LudoPinelli/comment-box.nvim', - event = { 'BufReadPre', 'BufNewFile', 'VeryLazy' }, opts = { doc_width = 80, box_width = 60, @@ -9,4 +8,18 @@ return { outer_blank_lines_below = true, inner_blank_lines = true, }, + keys = { + { 'Cd', 'CBd', desc = 'Delete comment decoration' }, + { 'Cy', 'CBy', desc = 'Yank comment' }, + { 'Cbl', 'CBllbox12', desc = 'Insert a comment box' }, + { 'Cbc', 'CBccbox18', desc = 'Insert a comment box' }, + { 'Cbr', 'CBrrbox15', desc = 'Insert a comment box' }, + { 'Cba', 'CBccbox6', desc = 'Insert a callout' }, + { 'Cll', 'CBclline7', desc = 'Insert a left-aligned comment line' }, + { 'Clc', 'CBccline7', desc = 'Insert a centered comment line' }, + { 'Clr', 'CBcrline7', desc = 'Insert a right-aligned comment line' }, + { 'ClL', 'CBclline', desc = 'Insert a simple comment line' }, + { 'ClC', 'CBccline', desc = 'Insert a simple comment line' }, + { 'ClR', 'CBcrline', desc = 'Insert a simple comment line' }, + }, }