Updated theme switcher and telescope

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-09-23 19:17:37 +02:00
parent 0c523ee51a
commit 4edb2ac186
2 changed files with 10 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ function M.themeselector()
local exec = function(choice)
if choice == nil then
vim.notify("No theme selected!")
vim.notify("No theme selected!", 4)
return
end

View File

@@ -10,12 +10,20 @@ return {
config = function()
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.setup({
pickers = {
find_files = {
find_command = { "fd", "-I", "--type", "file" },
find_command = command,
},
},
extensions = {