Switched to using pcall for imports
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
local builtin = require('telescope.builtin')
|
||||
local telescope = require('telescope')
|
||||
local telescope_setup, telescope = pcall(require, 'telescope')
|
||||
if not telescope_setup then
|
||||
return
|
||||
end
|
||||
|
||||
local builtin_setup, builtin = pcall(require, 'telescope.builtin')
|
||||
if not builtin_setup then
|
||||
return
|
||||
end
|
||||
|
||||
telescope.load_extension('file_browser')
|
||||
telescope.load_extension('project')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user