This commit is contained in:
sankalp committed 2024-01-18 14:36:22 +05:45
1 parent 19d9347db9
commit 3ac528c554
72 files changed
+1734 -3140

No files matched your search

+12
View File
@@ -1 +1,13 @@
vim.opt.conceallevel = 0
-- 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 })