|
@ -204,17 +204,22 @@ return { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
-- configure python server |
|
|
|
|
|
lspconfig["pyright"].setup({ |
|
|
|
|
|
capabilities = capabilities, |
|
|
|
|
|
on_attach = on_attach, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
-- configure python server |
|
|
|
|
|
lspconfig["gopls"].setup({ |
|
|
|
|
|
capabilities = capabilities, |
|
|
|
|
|
on_attach = on_attach, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
lspconfig.gopls.setup { |
|
|
|
|
|
on_attach = on_attach, |
|
|
|
|
|
capabilities = capabilities, |
|
|
|
|
|
cmd = {"gopls"}, |
|
|
|
|
|
filetypes = { "go", "gomod", "gowork", "gotmpl" }, |
|
|
|
|
|
root_dir = util.root_pattern("go.work", "go.mod", ".git"), |
|
|
|
|
|
settings = { |
|
|
|
|
|
gopls = { |
|
|
|
|
|
completeUnimported = true, |
|
|
|
|
|
usePlaceholders = true, |
|
|
|
|
|
analyses = { |
|
|
|
|
|
unusedparams = true, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
-- configure lua server (with special settings) |
|
|
-- configure lua server (with special settings) |
|
|
lspconfig["lua_ls"].setup({ |
|
|
lspconfig["lua_ls"].setup({ |
|
|