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:
parent
99ea741fbb
commit
f4f6260b20
9 changed files with 83 additions and 66 deletions
|
|
@ -104,16 +104,16 @@ return {
|
|||
vim.g.format_on_save = not vim.g.format_on_save
|
||||
local status = vim.g.format_on_save and "enabled" or "disabled"
|
||||
vim.notify("Format on save " .. status, vim.log.levels.INFO)
|
||||
end, { desc = "Toggle format on save", silent = true, noremap = true })
|
||||
end, { desc = "Formatting: Toggle format on save", silent = true, noremap = true })
|
||||
|
||||
-- Manual format (buffer)
|
||||
vim.keymap.set("n", "<leader>lf", function()
|
||||
vim.lsp.buf.format({ async = false })
|
||||
end, { desc = "Format buffer", silent = true, noremap = true })
|
||||
end, { desc = "Formatting: Format buffer", silent = true, noremap = true })
|
||||
|
||||
-- Manual format (visual range)
|
||||
vim.keymap.set("v", "<leader>lf", function()
|
||||
vim.lsp.buf.format({ async = false })
|
||||
end, { desc = "Format selection", silent = true, noremap = true })
|
||||
end, { desc = "Formatting: Format selection", silent = true, noremap = true })
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue