-
-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight matching words in previewers #933
Comments
We currently dont do anything with a column in any picker. But for the future we can. So if the the picker provides a column (and maybe col_width) we could make this possible but if not i think line highlighting is enough. Shouldn't be hard to implement we just need to make sure we arn't breaking builtins that do not provide it.
We would need to change this to something like this: if col and col_width then
pcall(vim.api.nvim_buf_add_highlight, bufnr, ns_previewer, "TelescopePreviewLine", lnum - 1, col - 1, col + col_width + 1)
else
pcall(vim.api.nvim_buf_add_highlight, bufnr, ns_previewer, "TelescopePreviewLine", lnum - 1, 0, -1)
end or similar |
Any news on this? I would prefer it this way actually. Or better yet, highlight the whole line with a background color, and highlight the colums with the text color, or something like that. |
Now only the line is highlighted.
The text was updated successfully, but these errors were encountered: