From 4edb2ac186f83145a70a73651e8a9ec397b14410 Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 23 Sep 2023 19:17:37 +0200 Subject: [PATCH] Updated theme switcher and telescope Signed-off-by: Taken --- lua/taken/functions/themes.lua | 2 +- lua/taken/plugins/telescope.lua | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lua/taken/functions/themes.lua b/lua/taken/functions/themes.lua index c6f8b7b..4cb0ddd 100644 --- a/lua/taken/functions/themes.lua +++ b/lua/taken/functions/themes.lua @@ -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 diff --git a/lua/taken/plugins/telescope.lua b/lua/taken/plugins/telescope.lua index 7e483b2..0921768 100644 --- a/lua/taken/plugins/telescope.lua +++ b/lua/taken/plugins/telescope.lua @@ -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 = {