⚙️ config(nvim): add silent and description to some keymaps

This commit is contained in:
Sergio Laín 2023-12-19 14:25:33 +01:00
parent ea8f38b863
commit a01147f661
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -57,10 +57,10 @@ map("n", "<c-,>", "_", { desc = "First character of Line" })
map("n", "<c-.>", "$", { desc = "Last character of Line" })
-- Copy whole text to clipboard
map("n", "<C-c>", ":%y+<CR>")
map("n", "<C-c>", ":%y+<CR>", { desc = "Copy whole text to clipboard", silent = true })
-- Select all text
map("n", "<C-n>", "gg<S-V>G")
map("n", "<C-n>", "gg<S-V>G", { desc = "Select all text", silent = true })
-- Better paste
-- remap "p" in visual mode to delete the highlighted text without overwriting your yanked/copied text, and then paste the content from the unnamed register.