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, + }, + }, + }, + }, +}