diff --git a/dot_config/nvim/lua/custom/configs/null-ls.lua b/dot_config/nvim/lua/custom/configs/null-ls.lua index 237996e..a26a5c7 100644 --- a/dot_config/nvim/lua/custom/configs/null-ls.lua +++ b/dot_config/nvim/lua/custom/configs/null-ls.lua @@ -4,8 +4,8 @@ local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) local opts = { sources = { -- run these on save null_ls.builtins.formatting.gofumpt, - null_ls.builtins.formatting.goimports_reviser, - null_ls.builtins.formatting.golines, + null_ls.builtins.formatting.goimports, + null_ls.builtins.diagnostics.golangci_lint, }, on_attach = function (client, bufnr) if client.supports_method("textDocument/formatting") then @@ -17,7 +17,7 @@ local opts = { group = augroup, buffer = bufnr, callback = function() - vim.lsp.buf.format({bufnr = bufnr}) + vim.lsp.buf.format({ async = false }) end, }) end