浏览代码

ref(telescope): don't overwrite default cmd to show hidden files

There's no need to overwrite default `find_files` command if we only
want to show hidden files. Instead we can pass the `hidden` option.
See: `help telescope.builtin.find_files()`

Ref: #1702
Rafael Madriz 3 年之前
父节点
当前提交
cbeff80603
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lua/lvim/core/telescope.lua

+ 1 - 1
lua/lvim/core/telescope.lua

@@ -72,7 +72,7 @@ function M.config()
       set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil,
       pickers = {
         find_files = {
-          find_command = { "fd", "--type=file", "--hidden", "--smart-case" },
+          hidden = true,
         },
         live_grep = {
           --@usage don't include the filename in the search results