mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nvim): add language servers for Golang
This commit is contained in:
@@ -20,6 +20,8 @@ local servers = {
|
|||||||
"cssmodules_ls",
|
"cssmodules_ls",
|
||||||
"diagnosticls",
|
"diagnosticls",
|
||||||
"emmet_ls",
|
"emmet_ls",
|
||||||
|
"golangci_lint_ls",
|
||||||
|
"gopls",
|
||||||
"graphql",
|
"graphql",
|
||||||
"html",
|
"html",
|
||||||
"jsonls",
|
"jsonls",
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ null_ls.setup({
|
|||||||
diagnostics.eslint_d,
|
diagnostics.eslint_d,
|
||||||
diagnostics.flake8, -- Python
|
diagnostics.flake8, -- Python
|
||||||
diagnostics.gitlint,
|
diagnostics.gitlint,
|
||||||
|
diagnostics.golangci_lint,
|
||||||
diagnostics.markdownlint.with({ extra_args = { "--rules ~MD033" } }),
|
diagnostics.markdownlint.with({ extra_args = { "--rules ~MD033" } }),
|
||||||
diagnostics.stylelint,
|
diagnostics.stylelint,
|
||||||
diagnostics.tsc,
|
diagnostics.tsc,
|
||||||
@@ -32,6 +33,9 @@ null_ls.setup({
|
|||||||
formatting.autopep8, -- Python
|
formatting.autopep8, -- Python
|
||||||
formatting.black.with({ extra_args = { "--fast" } }), -- Python
|
formatting.black.with({ extra_args = { "--fast" } }), -- Python
|
||||||
formatting.eslint_d,
|
formatting.eslint_d,
|
||||||
|
formatting.gofmt,
|
||||||
|
formatting.goimports,
|
||||||
|
formatting.goimports_reviser,
|
||||||
formatting.markdownlint,
|
formatting.markdownlint,
|
||||||
formatting.prettierd,
|
formatting.prettierd,
|
||||||
formatting.stylelint,
|
formatting.stylelint,
|
||||||
|
|||||||
Reference in New Issue
Block a user