This reverts commit 3b9ac8edba.
This commit is contained in:
@@ -234,13 +234,6 @@ telescope.setup({opts}) *telescope.setup()*
|
|||||||
|
|
||||||
Default: function that shows current count / all
|
Default: function that shows current count / all
|
||||||
|
|
||||||
*telescope.defaults.hl_result_eol*
|
|
||||||
hl_result_eol: ~
|
|
||||||
Changes if the highlight for the selected item in the results
|
|
||||||
window is always the full width of the window
|
|
||||||
|
|
||||||
Default: true
|
|
||||||
|
|
||||||
*telescope.defaults.dynamic_preview_title*
|
*telescope.defaults.dynamic_preview_title*
|
||||||
dynamic_preview_title: ~
|
dynamic_preview_title: ~
|
||||||
Will change the title of the preview window dynamically, where it
|
Will change the title of the preview window dynamically, where it
|
||||||
|
|||||||
@@ -320,16 +320,6 @@ append(
|
|||||||
Default: function that shows current count / all]]
|
Default: function that shows current count / all]]
|
||||||
)
|
)
|
||||||
|
|
||||||
append(
|
|
||||||
"hl_result_eol",
|
|
||||||
true,
|
|
||||||
[[
|
|
||||||
Changes if the highlight for the selected item in the results
|
|
||||||
window is always the full width of the window
|
|
||||||
|
|
||||||
Default: true]]
|
|
||||||
)
|
|
||||||
|
|
||||||
append(
|
append(
|
||||||
"dynamic_preview_title",
|
"dynamic_preview_title",
|
||||||
false,
|
false,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local a = vim.api
|
local a = vim.api
|
||||||
local log = require "telescope.log"
|
local log = require "telescope.log"
|
||||||
local conf = require("telescope.config").values
|
|
||||||
|
|
||||||
local highlights = {}
|
local highlights = {}
|
||||||
|
|
||||||
@@ -70,13 +69,7 @@ function Highlighter:hi_selection(row, caret)
|
|||||||
a.nvim_buf_clear_namespace(results_bufnr, ns_telescope_selection, 0, -1)
|
a.nvim_buf_clear_namespace(results_bufnr, ns_telescope_selection, 0, -1)
|
||||||
a.nvim_buf_add_highlight(results_bufnr, ns_telescope_selection, "TelescopeSelectionCaret", row, 0, #caret)
|
a.nvim_buf_add_highlight(results_bufnr, ns_telescope_selection, "TelescopeSelectionCaret", row, 0, #caret)
|
||||||
|
|
||||||
a.nvim_buf_set_extmark(
|
a.nvim_buf_add_highlight(results_bufnr, ns_telescope_selection, "TelescopeSelection", row, #caret, -1)
|
||||||
results_bufnr,
|
|
||||||
ns_telescope_selection,
|
|
||||||
row,
|
|
||||||
#caret,
|
|
||||||
{ end_line = row + 1, hl_eol = conf.hl_result_eol, hl_group = "TelescopeSelection" }
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Highlighter:hi_multiselect(row, is_selected)
|
function Highlighter:hi_multiselect(row, is_selected)
|
||||||
|
|||||||
Reference in New Issue
Block a user