added A to list of shit that indents properly

This commit is contained in:
2026-03-31 09:59:15 +01:00
parent f5b4ee85a4
commit 3a71912e22

View File

@@ -90,6 +90,14 @@ vim.keymap.set("n", "a", function()
end end
end, { expr = true, desc = "Indent properly on empty lines" }) end, { expr = true, desc = "Indent properly on empty lines" })
vim.keymap.set("n", "A", function()
if vim.fn.getline("."):match("^%s*$") then
return [["_cc]]
else
return "A"
end
end, { expr = true, desc = "Indent properly on empty lines" })
-- C-BS for deleting whole word in insert mode -- C-BS for deleting whole word in insert mode
vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true }) vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true })