Avoid formatting proto files and hide type info hints
This commit is contained in:
33
lua/plugins/lspconfig.lua
Normal file
33
lua/plugins/lspconfig.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user