Add tabwidth options and golang stuff

This commit is contained in:
Noah Håkansson 2024-01-30 17:24:57 +01:00
parent 721cb29480
commit 7911cca1ca
5 changed files with 131 additions and 1 deletions

View file

@ -621,7 +621,35 @@ require('mason-lspconfig').setup()
-- define the property 'filetypes' to the map in question.
local servers = {
clangd = {},
gopls = {},
gopls = {
gofumpt = true,
usePlaceholders = true,
completeUnimported = true,
matcher = 'Fuzzy',
diagnosticsDelay = '200ms',
symbolMatcher = 'fuzzy',
buildFlags = { '-tags', 'integration' },
-- codelenses
codelenses = {
generate = true, -- show the `go generate` lens.
gc_details = true, -- Show a code lens toggling the display of gc's choices.
test = true,
tidy = true,
vendor = true,
regenerate_cgo = true,
upgrade_dependency = true,
},
-- hints
hints = {
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
constantValues = true,
functionTypeParameters = true,
parameterNames = true,
rangeVariableTypes = true,
},
},
pyright = {},
rust_analyzer = {},
-- tsserver = {},