瀏覽代碼

feat: regenerate lsp templates after LvimUpdate (#3864)

LostNeophyte 2 年之前
父節點
當前提交
9f1f98312b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lua/lvim/utils/hooks.lua

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

@@ -60,6 +60,7 @@ function M.run_post_update()
   Log:debug "Syncing core plugins"
   plugin_loader.reload { reload "lvim.plugins", lvim.plugins }
   plugin_loader.sync_core_plugins()
+  M.reset_cache() -- force cache clear and templates regen once more
 
   if not in_headless then
     vim.schedule(function()