diff --git a/lua/nxvim/lsp/plugins/null-ls.lua b/lua/nxvim/lsp/plugins/null-ls.lua index 9adb7a9..e991bb3 100644 --- a/lua/nxvim/lsp/plugins/null-ls.lua +++ b/lua/nxvim/lsp/plugins/null-ls.lua @@ -28,6 +28,17 @@ null_ls.register({ }), }) +null_ls.register({ + name = "vzit", + method = null_ls.methods.FORMATTING, + filetypes = { "zig" }, + generator = null_ls.formatter({ + command = "vzit", + args = { "-w", "$FILENAME" }, + to_temp_file = true, + }), +}) + -- { == Configuration ==> ===================================================== null_ls.setup({