瀏覽代碼

update warning message

CPea 1 年之前
父節點
當前提交
0536a6c99a
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      lua/lvim/core/indentlines.lua

+ 1 - 5
lua/lvim/core/indentlines.lua

@@ -76,12 +76,8 @@ M.setup = function()
   local _, err = pcall(indent_blankline.setup, lvim.builtin.indentlines.options)
 
   if err then
-    local invalid_key = err:match "'(.*)'"
-
     vim.notify_once(
-      "`lvim.builtin.indentlines.options."
-        .. invalid_key
-        .. "` has been deprecated. Please take a look at `:h ibl.config` to learn about new config and update.",
+      err .. ". Please take a look at `:h ibl.config` to learn about config and update.",
       vim.log.levels.WARN
     )
   end