From 87dc747073a10f30dbbb1c4db49a58da3b0a69f1 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 11 Dec 2024 14:45:55 -0500 Subject: [PATCH] feature: implement custom search path for Telescope file finding --- lua/data/func.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/data/func.lua b/lua/data/func.lua index 9b556f2..437d337 100644 --- a/lua/data/func.lua +++ b/lua/data/func.lua @@ -1353,6 +1353,7 @@ function M.spellcheck(spellcheck, filetypes) -- Create an autocommand for the specified filetypes to manage spellcheck vim.api.nvim_create_autocmd('FileType', { group = 'Spellcheck', + ---@diagnostic disable-next-line: assign-type-mismatch pattern = filetypes, callback = function() vim.opt_local.spell = spellcheck @@ -2448,6 +2449,10 @@ function M.get_system_arch() return result end + require('telescope.builtin').find_files({ + search_dirs = { '/home/rootiest/projects' }, + }) + -- If all else fails return 'unknown' end