Revert "fix: set prompt filetype to TelescopePrompt (#81)" (#95)

This reverts commit e8e97eeebd.

This plugin defines the filetype `frecency` to use a customized syntax
to highlight tags in input characters. So we should use `frecency` here.

<img width="141" alt="スクリーンショット 0005-04-11 10 09 02" src="https://user-images.githubusercontent.com/1239245/231029307-e09ede61-a0ee-49fe-8fa5-25654a193ca5.png">
This commit is contained in:
JINNOUCHI Yasushi 2023-04-11 10:10:55 +09:00 committed by GitHub
parent 09269b2b9d
commit 38d6743eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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