Avoid formatting proto files and hide type info hints

This commit is contained in:
2026-01-21 14:42:07 +00:00
parent a35a2926b6
commit 639a6939b6
+33
View 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,
},
},
},
},
}