mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
add go lang support
This commit is contained in:
@ -12,6 +12,13 @@ local opts = {
|
|||||||
b.code_actions.statix,
|
b.code_actions.statix,
|
||||||
b.formatting.alejandra,
|
b.formatting.alejandra,
|
||||||
b.diagnostics.deadnix,
|
b.diagnostics.deadnix,
|
||||||
|
|
||||||
|
-- go
|
||||||
|
b.code_actions.gomodifytags,
|
||||||
|
b.code_actions.impl,
|
||||||
|
b.formatting.gofumpt,
|
||||||
|
b.formatting.goimports,
|
||||||
|
b.diagnostics.staticcheck,
|
||||||
},
|
},
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
if client.supports_method("textDocument/formatting") then
|
if client.supports_method("textDocument/formatting") then
|
||||||
|
@ -50,6 +50,7 @@ M.mason = {
|
|||||||
"gomodifytags",
|
"gomodifytags",
|
||||||
"impl",
|
"impl",
|
||||||
"iferr",
|
"iferr",
|
||||||
|
"staticcheck",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user