feature: implement custom search path for Telescope file finding
This commit is contained in:
@@ -1353,6 +1353,7 @@ function M.spellcheck(spellcheck, filetypes)
|
|||||||
-- Create an autocommand for the specified filetypes to manage spellcheck
|
-- Create an autocommand for the specified filetypes to manage spellcheck
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
group = 'Spellcheck',
|
group = 'Spellcheck',
|
||||||
|
---@diagnostic disable-next-line: assign-type-mismatch
|
||||||
pattern = filetypes,
|
pattern = filetypes,
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt_local.spell = spellcheck
|
vim.opt_local.spell = spellcheck
|
||||||
@@ -2448,6 +2449,10 @@ function M.get_system_arch()
|
|||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require('telescope.builtin').find_files({
|
||||||
|
search_dirs = { '/home/rootiest/projects' },
|
||||||
|
})
|
||||||
|
|
||||||
-- If all else fails
|
-- If all else fails
|
||||||
return 'unknown'
|
return 'unknown'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user