Skip to content

feat(highlights): add TelescopeResultsLineCol for line:col coordinates#3667

Open
singhvishalkr wants to merge 1 commit into
nvim-telescope:masterfrom
singhvishalkr:feat-results-linecol-highlight
Open

feat(highlights): add TelescopeResultsLineCol for line:col coordinates#3667
singhvishalkr wants to merge 1 commit into
nvim-telescope:masterfrom
singhvishalkr:feat-results-linecol-highlight

Conversation

@singhvishalkr
Copy link
Copy Markdown

When using the lsp_references picker or other quickfix-based pickers, the line:column coordinates are displayed alongside the filename. Previously there was no way to style this portion independently from other text using TelescopeResultsNormal.

I added a new highlight group TelescopeResultsLineCol that applies specifically to the :lnum:col portion of quickfix entries. It defaults to LineNr to maintain the current look, but users can now override it in their colorscheme:

vim.api.nvim_set_hl(0, "TelescopeResultsLineCol", { fg = "#808080" })

Closes #3117

Add a dedicated highlight group for the line:column portion in quickfix
entries (used by lsp_references and similar pickers). This allows users
to customize the coordinate display separately from the filename and
matched text.

The new group defaults to LineNr to match the existing styling.

Closes nvim-telescope#3117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

telescope results line color / highlight

1 participant