- snack explorer now opens on the neovim is open at instead of the go module - remove obsolete linting stuff
33 lines
853 B
Lua
33 lines
853 B
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
gopls = {
|
|
settings = {
|
|
gopls = {
|
|
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,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|