added A to list of shit that indents properly
This commit is contained in:
8
init.lua
8
init.lua
@@ -90,6 +90,14 @@ vim.keymap.set("n", "a", function()
|
||||
end
|
||||
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
|
||||
vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user