diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index de07d1c..9561639 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -63,8 +63,8 @@ vim.keymap.set('n', 'w"', 'vnew', { desc = 'Split the window ve vim.keymap.set('n', 'w%', 'new', { desc = 'Split the window horizontally (new buffer)' }) -- window actions -vim.keymap.set('n', 'wbn', 'enew', { desc = 'Open a [N]ew [B]uffer' }) -vim.keymap.set('n', 'wbc', 'bw', { desc = '[C]lose current [B]uffer' }) -- :bd would keep in background +vim.keymap.set('n', 'wbn', 'enew', { desc = 'Open a [N]ew buffer' }) +vim.keymap.set('n', 'wbc', 'bw', { desc = '[C]lose current buffer' }) -- :bd would keep in background vim.keymap.set('n', '', 'resize +1', { desc = 'Resize window' }) vim.keymap.set('n', '', 'resize -1', { desc = 'Resize window' }) vim.keymap.set('n', '', 'vertical resize +1', { desc = 'Resize window vertically' }) diff --git a/lua/custom/plugins/telescope.lua b/lua/custom/plugins/telescope.lua index 284c8a1..b02ac40 100644 --- a/lua/custom/plugins/telescope.lua +++ b/lua/custom/plugins/telescope.lua @@ -118,7 +118,7 @@ return { end, { desc = '[F]ind [/] in Open Files' }) -- Shortcut for searching your Neovim configuration files - vim.keymap.set('n', 'fnf', function() + vim.keymap.set('n', 'fnf', function() builtin.find_files { cwd = vim.fn.stdpath 'config' } end, { desc = '[F]ind [N]eovim [F]iles' }) end, diff --git a/lua/custom/plugins/ui.lua b/lua/custom/plugins/ui.lua index 7176583..86f09a3 100644 --- a/lua/custom/plugins/ui.lua +++ b/lua/custom/plugins/ui.lua @@ -192,18 +192,16 @@ return { local wk = require 'which-key' local defaults = { mode = { 'n', 'v' }, - [';'] = { name = '+telescope' }, - [';f'] = { name = '+find' }, + [''] = { name = '+select', f = { name = '[F]ind' } }, ['g'] = { name = '+goto' }, [']'] = { name = '+next' }, ['['] = { name = '+prev' }, - ['d'] = { name = '+[D]ebug' }, - ['c'] = { name = '+[C]ode/[C]olor' }, + ['d'] = { name = '+[D]ebug', w = { name = '[W]indow' }, c = { name = '[C]hange' } }, + ['c'] = { name = '+[C]ode/[C]olor', t = { name = '+[T]rouble' } }, ['g'] = { name = '+[G]ood tools' }, ['f'] = { name = '+[F]ormatting' }, ['r'] = { name = '[R]ename' }, - ['f'] = { name = '[F]ind' }, - ['w'] = { name = '[W]orkspace' }, + ['w'] = { name = '[W]orkspace', b = { name = 'buffer' } }, ['t'] = { name = '[T]oggle', ['🚫'] = 'which_key_ignore' }, } wk.register(defaults, opts)