add gohtmltmpl in default setup

neovim_0.6
ray-x 2 years ago
parent e869cedba3
commit 5ab4dffba5

@ -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 ()
lspconfig['null-ls'].setup(cfg) -- adjust null_ls startup timing
end,
1000
)
vim.defer_fn(function()
lspconfig['null-ls'].setup(cfg) -- adjust null_ls startup timing
end, 1000)
log('null-ls loading')
_NG_Loaded['null-ls'] = true
configs['null-ls'] = cfg

Loading…
Cancel
Save