From 639a6939b6e428b4709a62f3ff6e5cc3b4da5e25 Mon Sep 17 00:00:00 2001 From: Natercio Moniz Date: Wed, 21 Jan 2026 14:42:07 +0000 Subject: [PATCH] Avoid formatting proto files and hide type info hints --- lua/plugins/lspconfig.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua/plugins/lspconfig.lua diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua new file mode 100644 index 0000000..6bb655b --- /dev/null +++ b/lua/plugins/lspconfig.lua @@ -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, + }, + }, + }, + }, +}