Updated theme switcher and telescope
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -39,7 +39,7 @@ function M.themeselector()
|
|||||||
|
|
||||||
local exec = function(choice)
|
local exec = function(choice)
|
||||||
if choice == nil then
|
if choice == nil then
|
||||||
vim.notify("No theme selected!")
|
vim.notify("No theme selected!", 4)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -10,12 +10,20 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
|
|
||||||
|
local command = { "fd", "-I", "-H", "--type", "file" }
|
||||||
|
local ignored = { "node_modules", ".git" }
|
||||||
|
|
||||||
|
for i, v in ipairs(ignored) do
|
||||||
|
table.insert(command, "--exclude")
|
||||||
|
table.insert(command, v)
|
||||||
|
end
|
||||||
|
|
||||||
telescope.load_extension("project")
|
telescope.load_extension("project")
|
||||||
|
|
||||||
telescope.setup({
|
telescope.setup({
|
||||||
pickers = {
|
pickers = {
|
||||||
find_files = {
|
find_files = {
|
||||||
find_command = { "fd", "-I", "--type", "file" },
|
find_command = command,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user