|
|
|
@ -115,7 +115,7 @@ local setups = {
|
|
|
|
|
gopls = {
|
|
|
|
|
on_attach = on_attach,
|
|
|
|
|
-- capabilities = cap,
|
|
|
|
|
filetypes = { 'go', 'gomod' },
|
|
|
|
|
filetypes = { 'go', 'gomod', 'gohtmltmpl', 'gotexttmpl' },
|
|
|
|
|
message_level = vim.lsp.protocol.MessageType.Error,
|
|
|
|
|
cmd = {
|
|
|
|
|
'gopls', -- share the gopls instance if there is one already
|
|
|
|
@ -554,12 +554,9 @@ local function lsp_startup(ft, retry, user_lsp_opts)
|
|
|
|
|
if nulls_cfg then
|
|
|
|
|
local cfg = {}
|
|
|
|
|
cfg = vim.tbl_deep_extend('keep', cfg, nulls_cfg)
|
|
|
|
|
vim.defer_fn(
|
|
|
|
|
function ()
|
|
|
|
|
vim.defer_fn(function()
|
|
|
|
|
lspconfig['null-ls'].setup(cfg) -- adjust null_ls startup timing
|
|
|
|
|
end,
|
|
|
|
|
1000
|
|
|
|
|
)
|
|
|
|
|
end, 1000)
|
|
|
|
|
log('null-ls loading')
|
|
|
|
|
_NG_Loaded['null-ls'] = true
|
|
|
|
|
configs['null-ls'] = cfg
|
|
|
|
|