Added quite a few additional configs
This commit is contained in:
parent
a4b3cfb24c
commit
13f1959014
12 changed files with 204 additions and 123 deletions
|
|
@ -50,6 +50,21 @@ return {
|
|||
-- function will be executed to configure the current buffer
|
||||
-- import lspconfig plugin
|
||||
local lspconfig = require('lspconfig')
|
||||
local util = require('lspconfig/util')
|
||||
lspconfig.gopls.setup({
|
||||
cmd = { 'gopls' },
|
||||
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
|
||||
root_dir = util.root_pattern('go.work', 'go.mod', '.git'),
|
||||
settings = {
|
||||
gopls = {
|
||||
completeUnimported = true,
|
||||
usePlaceholders = true,
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- import mason_lspconfig plugin
|
||||
local mason_lspconfig = require('mason-lspconfig')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue