diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-10 11:29:55 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-10 11:29:55 -0400 |
| commit | fe7a7b4657fd678e3f4d1c490f2a4e006d0e8b49 (patch) | |
| tree | 8ef756ebf585e1ead503ba821523f6bdfc0c9f84 /lua | |
| parent | d42b057f64eeefa7b0345de183ec641770e7b040 (diff) | |
Don't let begin error when he makes bad stuff
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 2 |
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) |
