feature: implement custom search path for Telescope file finding

This commit is contained in:
2024-12-11 14:45:55 -05:00
parent baaed9bd80
commit 87dc747073
+5
View File
@@ -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