Ver Fonte

chore(custom-finders): don't use deprecated `_close` action (#3903)

solve deprecation warning

`_close` in `telescope.actions` is deprecated, telescopedocs says to use `close` instead
Marco há 2 anos atrás
pai
commit
c86dfabab7
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      lua/lvim/core/telescope/custom-finders.lua

+ 3 - 3
lua/lvim/core/telescope/custom-finders.lua

@@ -74,9 +74,9 @@ function M.view_lunarvim_changelog()
       attach_mappings = function(_, map)
         map("i", "<enter>", copy_to_clipboard_action)
         map("n", "<enter>", copy_to_clipboard_action)
-        map("i", "<esc>", actions._close)
-        map("n", "<esc>", actions._close)
-        map("n", "q", actions._close)
+        map("i", "<esc>", actions.close)
+        map("n", "<esc>", actions.close)
+        map("n", "q", actions.close)
         return true
       end,
       sorter = sorters.generic_sorter,