Skip to content

Commit

Permalink
ref(telescope): don't overwrite default cmd to show hidden files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rafamadriz committed May 10, 2022
1 parent f7ba2c8 commit cbeff80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lvim/core/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbeff80

Please sign in to comment.