Refine keymap descriptions for clarity and consistency

Updated keymap descriptions across various plugins to include
specific prefixes for better identification and organization.
This commit is contained in:
Ray Elliott 2025-12-12 01:00:25 +00:00
commit f4f6260b20
9 changed files with 83 additions and 66 deletions

View file

@ -44,10 +44,18 @@ map('n', '<leader>te', function()
local current_file_dir = vim.fn.expand('%:p:h')
vim.cmd('tabnew')
vim.cmd('Explore ' .. vim.fn.fnameescape(current_file_dir))
end, { desc = 'Tab explore (current file dir)', silent = true })
end, { desc = 'Netrw: Tab explore (current file dir)', silent = true })
-- Open netrw in new tab at project root (cwd)
map('n', '<leader>tE', function()
vim.cmd('tabnew')
vim.cmd('Explore ' .. vim.fn.fnameescape(vim.fn.getcwd()))
end, { desc = 'Tab explore (project root)', silent = true })
end, { desc = 'Netrw: Tab explore (project root)', silent = true })
-- Enable line numbers in netrw buffers
vim.api.nvim_create_autocmd('FileType', {
pattern = 'netrw',
callback = function()
vim.opt_local.number = true
vim.opt_local.relativenumber = true
end,
})