From cbeff80603d0e3b90c5e7be1ab4465ae2fac01e2 Mon Sep 17 00:00:00 2001 From: Rafael Madriz Date: Mon, 9 May 2022 22:07:07 -0300 Subject: 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 --- lua/lvim/core/telescope.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lvim/core/telescope.lua') diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index 5b55bdc3..07dd4b89 100644 --- a/lua/lvim/core/telescope.lua +++ b/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 -- cgit v1.2.3 From 42529e1c4f55824534184ec0658f0eefb328ac3d Mon Sep 17 00:00:00 2001 From: Xavier Young <45989017+younger-1@users.noreply.github.com> Date: Sun, 15 May 2022 21:59:36 +0800 Subject: fix: load notify's telescope extension properly (#2586) * fix: load notify's telescope extension * fix: add which-key integration for notify --- lua/lvim/core/telescope.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/lvim/core/telescope.lua') diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index 07dd4b89..6a04a866 100644 --- a/lua/lvim/core/telescope.lua +++ b/lua/lvim/core/telescope.lua @@ -130,6 +130,12 @@ function M.setup() end) end + if lvim.builtin.notify.active then + pcall(function() + require("telescope").load_extension "notify" + end) + end + if lvim.builtin.telescope.on_config_done then lvim.builtin.telescope.on_config_done(telescope) end -- cgit v1.2.3