34 lines
903 B
Lua
34 lines
903 B
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
gopls = {
|
|
settings = {
|
|
gopls = {
|
|
experimentalWorkspaceModule = true,
|
|
hints = {
|
|
assignVariableTypes = false,
|
|
-- compositeLiteralFields = false,
|
|
-- compositeLiteralTypes = false,
|
|
-- constantValues = false,
|
|
functionTypeParameters = false,
|
|
-- parameterNames = false,
|
|
rangeVariableTypes = false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
buf_ls = {
|
|
on_attach = function(client, bufnr)
|
|
-- Disable formatting capability
|
|
client.server_capabilities.documentFormattingProvider = false
|
|
client.server_capabilities.documentRangeFormattingProvider = false
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|