add gohtmltmpl in default setup

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

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

Loading…
Cancel
Save