diff options
author | kylo252 <[email protected]> | 2022-01-10 09:59:20 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-01-10 09:59:20 +0100 |
commit | 579064b88119538d0a13edf798d1a4f8875b6472 (patch) | |
tree | fd40e3ddef76a83a4c96c03457e9834777379c0d /lua/lvim/lsp/templates.lua | |
parent | 8fe7cf2fac461b2136e815e3107b434cd407a09d (diff) | |
parent | ec1e4140fa4156df50785da5d6297145762a7daa (diff) |
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/lsp/templates.lua')
-rw-r--r-- | lua/lvim/lsp/templates.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lvim/lsp/templates.lua b/lua/lvim/lsp/templates.lua index eb05615e..6608047d 100644 --- a/lua/lvim/lsp/templates.lua +++ b/lua/lvim/lsp/templates.lua @@ -42,6 +42,10 @@ end ---The files are generated to a runtimepath: "$LUNARVIM_RUNTIME_DIR/site/after/ftplugin/template.lua" ---@param servers_names table list of servers to be enabled. Will add all by default function M.generate_templates(servers_names) + for _, client in pairs(vim.lsp.get_active_clients()) do + client:stop() + end + servers_names = servers_names or {} Log:debug "Templates installation in progress" |