This commit is contained in:
2025-08-13 21:46:48 +02:00
commit c3e2e6509b
818 changed files with 54187 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
-- When creating a new line with o, make sure there is a trailing comma on the current line
vim.keymap.set("n", "o", function()
local line = vim.api.nvim_get_current_line()
local should_add_comma = string.find(line, "[^,{[]$")
if should_add_comma then
return "A,<cr>"
else
return "o"
end
end, { buffer = true, expr = true })