Skip to content

Commit 19798ea

Browse files
committed
fix(nvim): guard telescope.config require with pcall
1 parent 0fd41cd commit 19798ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.nvim.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ if not ok then
33
return
44
end
55

6-
local current = require("telescope.config").values.file_ignore_patterns or {}
6+
local ok_config, config = pcall(require, "telescope.config")
7+
local current = ok_config and config.values.file_ignore_patterns or {}
78
table.insert(current, "^docs/plans/")
89

910
telescope.setup({

0 commit comments

Comments
 (0)