Created
April 9, 2023 20:57
-
-
Save MikaelFangel/eab240a4ffab84f1d2203e03cafd3a7c to your computer and use it in GitHub Desktop.
Nvim Go null-ls configuration with lsp, linter and auto imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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