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 = {