summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-09-10 11:29:55 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-09-10 11:29:55 -0400
commitfe7a7b4657fd678e3f4d1c490f2a4e006d0e8b49 (patch)
tree8ef756ebf585e1ead503ba821523f6bdfc0c9f84 /lua/telescope/pickers.lua
parentd42b057f64eeefa7b0345de183ec641770e7b040 (diff)
Don't let begin error when he makes bad stuff
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 17788a0..637c235 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -218,7 +218,7 @@ function Picker:find()
local prompt_bufnr = a.nvim_win_get_buf(prompt_win)
a.nvim_win_set_option(prompt_win, 'winhl', 'Normal:TelescopeNormal')
- a.nvim_buf_set_option(prompt_bufnr, 'filetype', 'TelescopePrompt')
+ pcall(a.nvim_buf_set_option, prompt_bufnr, 'filetype', 'TelescopePrompt')
-- a.nvim_buf_set_option(prompt_bufnr, 'buftype', 'prompt')
-- vim.fn.prompt_setprompt(prompt_bufnr, prompt_string)