|
|
|
@ -141,12 +141,6 @@ vim.opt.timeoutlen = 300
|
|
|
|
|
vim.opt.splitright = true
|
|
|
|
|
vim.opt.splitbelow = true
|
|
|
|
|
|
|
|
|
|
-- Sets how neovim will display certain whitespace characters in the editor.
|
|
|
|
|
-- See `:help 'list'`
|
|
|
|
|
-- and `:help 'listchars'`
|
|
|
|
|
vim.opt.list = true
|
|
|
|
|
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
|
|
|
|
|
|
|
|
|
-- Preview substitutions live, as you type!
|
|
|
|
|
vim.opt.inccommand = 'split'
|
|
|
|
|
|
|
|
|
@ -676,38 +670,41 @@ require('lazy').setup({
|
|
|
|
|
local servers = {
|
|
|
|
|
-- clangd = {},
|
|
|
|
|
gopls = {
|
|
|
|
|
gofumpt = true,
|
|
|
|
|
codelenses = {
|
|
|
|
|
gc_details = false,
|
|
|
|
|
generate = true,
|
|
|
|
|
regenerate_cgo = true,
|
|
|
|
|
run_govulncheck = true,
|
|
|
|
|
test = true,
|
|
|
|
|
tidy = true,
|
|
|
|
|
upgrade_dependency = true,
|
|
|
|
|
vendor = true,
|
|
|
|
|
},
|
|
|
|
|
hints = {
|
|
|
|
|
assignVariableTypes = true,
|
|
|
|
|
compositeLiteralFields = true,
|
|
|
|
|
compositeLiteralTypes = true,
|
|
|
|
|
constantValues = true,
|
|
|
|
|
functionTypeParameters = true,
|
|
|
|
|
parameterNames = true,
|
|
|
|
|
rangeVariableTypes = true,
|
|
|
|
|
},
|
|
|
|
|
analyses = {
|
|
|
|
|
fieldalignment = true,
|
|
|
|
|
nilness = true,
|
|
|
|
|
unusedparams = true,
|
|
|
|
|
unusedwrite = true,
|
|
|
|
|
useany = true,
|
|
|
|
|
settings = {
|
|
|
|
|
gopls = {
|
|
|
|
|
gofumpt = true,
|
|
|
|
|
codelenses = {
|
|
|
|
|
gc_details = false,
|
|
|
|
|
generate = true,
|
|
|
|
|
regenerate_cgo = true,
|
|
|
|
|
run_govulncheck = true,
|
|
|
|
|
test = true,
|
|
|
|
|
tidy = true,
|
|
|
|
|
upgrade_dependency = true,
|
|
|
|
|
vendor = true,
|
|
|
|
|
},
|
|
|
|
|
hints = {
|
|
|
|
|
assignVariableTypes = true,
|
|
|
|
|
compositeLiteralFields = true,
|
|
|
|
|
compositeLiteralTypes = true,
|
|
|
|
|
constantValues = true,
|
|
|
|
|
functionTypeParameters = true,
|
|
|
|
|
parameterNames = true,
|
|
|
|
|
rangeVariableTypes = true,
|
|
|
|
|
},
|
|
|
|
|
analyses = {
|
|
|
|
|
nilness = true,
|
|
|
|
|
unusedparams = true,
|
|
|
|
|
unusedwrite = true,
|
|
|
|
|
useany = true,
|
|
|
|
|
},
|
|
|
|
|
usePlaceholders = true,
|
|
|
|
|
completeUnimported = true,
|
|
|
|
|
staticcheck = true,
|
|
|
|
|
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
|
|
|
|
|
semanticTokens = true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
usePlaceholders = true,
|
|
|
|
|
completeUnimported = true,
|
|
|
|
|
staticcheck = true,
|
|
|
|
|
directoryFilters = { '-.git', '-.vscode', '-.idea', '-.vscode-test', '-node_modules' },
|
|
|
|
|
semanticTokens = true,
|
|
|
|
|
},
|
|
|
|
|
ruby_lsp = {},
|
|
|
|
|
|
|
|
|
|