feat: add filetype

This commit is contained in:
TJ DeVries
2020-09-10 11:23:04 -04:00
parent 969e49c577
commit d42b057f64
2 changed files with 3 additions and 0 deletions

View File

@@ -89,6 +89,8 @@ j/k next/previous (in normal mode)
Attaching your own mappings is possible and additional information will come soon. Attaching your own mappings is possible and additional information will come soon.
Additionally, the prompt's filetype will be `TelescopePrompt`. You can customize the filetype as you would normally.
## Status (Unstable API) ## Status (Unstable API)
While the underlying API & Infrastructure (A.K.A. Spaghetti Code) is still very much WIP and While the underlying API & Infrastructure (A.K.A. Spaghetti Code) is still very much WIP and

View File

@@ -218,6 +218,7 @@ function Picker:find()
local prompt_bufnr = a.nvim_win_get_buf(prompt_win) local prompt_bufnr = a.nvim_win_get_buf(prompt_win)
a.nvim_win_set_option(prompt_win, 'winhl', 'Normal:TelescopeNormal') a.nvim_win_set_option(prompt_win, 'winhl', 'Normal:TelescopeNormal')
a.nvim_buf_set_option(prompt_bufnr, 'filetype', 'TelescopePrompt')
-- a.nvim_buf_set_option(prompt_bufnr, 'buftype', 'prompt') -- a.nvim_buf_set_option(prompt_bufnr, 'buftype', 'prompt')
-- vim.fn.prompt_setprompt(prompt_bufnr, prompt_string) -- vim.fn.prompt_setprompt(prompt_bufnr, prompt_string)