changes from claymore on п'ятниця, 6 грудня 2024 16:12:03 +0200
This commit is contained in:
parent
39e3d0c6bc
commit
02bb20aba5
|
@ -80,6 +80,9 @@ lspconfig.html.setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
lspconfig.gopls.setup({
|
lspconfig.gopls.setup({
|
||||||
|
cmd = { "gopls", "-remote=auto" },
|
||||||
|
-- attach to new filetypes too.
|
||||||
|
filetypes = { "go", "gomod", "gowork", "gotmpl", "gohtmltmpl", "gotexttmpl" },
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
hints = {
|
hints = {
|
||||||
|
@ -91,6 +94,7 @@ lspconfig.gopls.setup({
|
||||||
compositeLiteralTypes = true,
|
compositeLiteralTypes = true,
|
||||||
functionTypeParameters = true,
|
functionTypeParameters = true,
|
||||||
},
|
},
|
||||||
|
["build.templateExtensions"] = { "gohtml", "html", "gotmpl", "tmpl" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue