fix: set prompt filetype to TelescopePrompt (#81)

This commit is contained in:
Sabu Siyad 2022-11-06 18:09:01 +05:30 committed by GitHub
parent 5140a6ed87
commit e8e97eeebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,7 +272,7 @@ local frecency = function(opts)
}) })
state.picker:find() state.picker:find()
vim.api.nvim_buf_set_option(state.picker.prompt_bufnr, "filetype", "frecency") vim.api.nvim_buf_set_option(state.picker.prompt_bufnr, "filetype", "TelescopePrompt")
vim.api.nvim_buf_set_option(state.picker.prompt_bufnr, "completefunc", "frecency#FrecencyComplete") vim.api.nvim_buf_set_option(state.picker.prompt_bufnr, "completefunc", "frecency#FrecencyComplete")
vim.api.nvim_buf_set_keymap( vim.api.nvim_buf_set_keymap(
state.picker.prompt_bufnr, state.picker.prompt_bufnr,