deprecate persistent_filter.

functionality is superceded by https://github.com/nvim-telescope/telescope.nvim/pull/1051
and Telesopes native `default_text` setting.
This commit is contained in:
Senghan Bright 2021-08-04 09:37:09 +02:00
parent 6415657162
commit 8b6f4b8981

View File

@ -230,11 +230,6 @@ local frecency = function(opts)
}) })
state.picker:find() state.picker:find()
-- restore last filter
-- if state.persistent_filter and state.last_filter then
-- vim.api.nvim_feedkeys(":" .. state.last_filter .. ":", "n", true)
-- end
vim.api.nvim_buf_set_option(state.picker.prompt_bufnr, "filetype", "frecency") 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_option(state.picker.prompt_bufnr, "completefunc", "frecency#FrecencyComplete")
vim.api.nvim_buf_set_keymap(state.picker.prompt_bufnr, "i", "<Tab>", "pumvisible() ? '<C-n>' : '<C-x><C-u>'", {expr = true, noremap = true}) vim.api.nvim_buf_set_keymap(state.picker.prompt_bufnr, "i", "<Tab>", "pumvisible() ? '<C-n>' : '<C-x><C-u>'", {expr = true, noremap = true})
@ -264,7 +259,6 @@ return telescope.register_extension {
set_config_state('show_scores', ext_config.show_scores, false) set_config_state('show_scores', ext_config.show_scores, false)
set_config_state('show_unindexed', ext_config.show_unindexed, true) set_config_state('show_unindexed', ext_config.show_unindexed, true)
set_config_state('show_filter_column', ext_config.show_filter_column, true) set_config_state('show_filter_column', ext_config.show_filter_column, true)
-- set_config_state('persistent_filter', ext_config.persistent_filter, true)
set_config_state('user_workspaces', ext_config.workspaces, {}) set_config_state('user_workspaces', ext_config.workspaces, {})
-- start the database client -- start the database client