refactor(nvim): cleanup nvim config

This commit is contained in:
hektor committed 2026-03-18 12:12:15 +01:00
1 parent 41011923ac
commit 55a69316a5
14 files changed
+105 -422

No files matched your search

-3
View File
@@ -1,15 +1,12 @@
local json_newline = function()
local line = vim.api.nvim_get_current_line()
if line == "" then
print("line is empty")
return "o"
elseif string.byte(line, -1) == string.byte(",") then
return "o"
elseif string.byte(line, -1) == string.byte("{") then
print("line ends with '{'")
return "o"
elseif string.byte(line, -1) == string.byte("}") then
print("line ends with '}'")
return "o"
else
return "A,<CR>"