From 5ab4dffba567c51ea485c89b3b13a36f8d59fabc Mon Sep 17 00:00:00 2001 From: ray-x Date: Sat, 18 Dec 2021 15:23:34 +1100 Subject: [PATCH] add gohtmltmpl in default setup --- lua/navigator/lspclient/clients.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lua/navigator/lspclient/clients.lua b/lua/navigator/lspclient/clients.lua index b25a624..2fd51a9 100644 --- a/lua/navigator/lspclient/clients.lua +++ b/lua/navigator/lspclient/clients.lua @@ -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