فهرست منبع

Merge branch 'rolling'

kylo252 3 سال پیش
والد
کامیت
d0840511d8
2فایلهای تغییر یافته به همراه0 افزوده شده و 7 حذف شده
  1. 0 4
      lua/lvim/lsp/templates.lua
  2. 0 3
      lua/lvim/utils/hooks.lua

+ 0 - 4
lua/lvim/lsp/templates.lua

@@ -42,10 +42,6 @@ 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"

+ 0 - 3
lua/lvim/utils/hooks.lua

@@ -21,9 +21,6 @@ function M.run_post_reload()
   Log:debug "Starting post-reload hook"
   require("lvim.plugin-loader").ensure_installed()
   M.reset_cache()
-  if package.loaded["lspconfig"] then
-    pcall(vim.cmd, "LspRestart")
-  end
 end
 
 ---Reset any startup cache files used by Packer and Impatient