Don't let begin error when he makes bad stuff

This commit is contained in:
TJ DeVries
2020-09-10 11:29:55 -04:00
parent d42b057f64
commit fe7a7b4657

View File

@@ -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)