diff --git a/lua/keymaps.lua b/lua/keymaps.lua index bac766f..b3712d2 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -41,6 +41,8 @@ vim.keymap.set('v', 'pny', '"_dP', { desc = '[P]aste [N]o [Y]ank' }) vim.keymap.set('n', 'cd ', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' }) -- Navigate to 'base' directory, the initial dir that nvim was run in vim.keymap.set('n', 'cdh', 'cd ' .. vim.g.base_dir .. '', { desc = '[C]hange [D]irectory to [H]ome' }) +-- Automatically navigate to config directory +vim.keymap.set('n', 'cdn', 'cd ' .. vim.fn.stdpath 'config' .. '', { desc = '[C]hange [D]irectory to [N]eovim' }) -- Delete current buffer without closing window vim.keymap.set('n', 'bd', 'bpspbnbd', { desc = '[B]uffer [D]elete' })