updated neovim state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2025-09-01 09:29:13 +02:00
parent de653486ac
commit cef1853601

View File

@ -23,6 +23,10 @@ vim.{{ t }}["{{ k }}"]{% if v is defined %}={% if v is integer or v is boolean %
{{- cfg("options", neovim.config.options) }}
-- NeoVIM functions
function JsonFormat()
vim.cmd("% !jq")
end
function RemoveComments()
vim.cmd.normal("g/^#/d")
vim.cmd.normal("g/^$/d")
@ -32,6 +36,7 @@ function Reformat()
vim.cmd.normal("gg=G")
end
vim.api.nvim_command("command! JsonFormat call luaeval('JsonFormat()')")
vim.api.nvim_command("command! Reformat call luaeval('Reformat()')")
vim.api.nvim_command("command! RemoveComments call luaeval('RemoveComments()')")