Skip to content

Instantly share code, notes, and snippets.

@MikaelFangel
Created April 9, 2023 20:57
Show Gist options
  • Save MikaelFangel/eab240a4ffab84f1d2203e03cafd3a7c to your computer and use it in GitHub Desktop.
Save MikaelFangel/eab240a4ffab84f1d2203e03cafd3a7c to your computer and use it in GitHub Desktop.
Nvim Go null-ls configuration with lsp, linter and auto imports
local present, null_ls = pcall(require, "null-ls")
if not present then
return
end
local b = null_ls.builtins
local sources = {
b.formatting.gofumpt,
b.formatting.goimports,
b.diagnostics.golangci_lint,
}
null_ls.setup {
debug = true,
sources = sources,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment