Skip to content

Cursorline not visible in the Lazy UI? #2001

Answered by dpetka2001
Shimoon asked this question in Q&A
Discussion options

You must be logged in to vote

That's because the floating window for Lazy UI uses style = "minimal".

If you see :h nvim_open_win() it mentions

"minimal" Nvim will display the window with many UI
options disabled. This is useful when displaying a
temporary float where the text should not be edited.
Disables 'number', 'relativenumber', 'cursorline',
'cursorcolumn', 'foldcolumn', 'spell' and 'list'
options. 'signcolumn' is changed to auto and
'colorcolumn' is cleared. 'statuscolumn' is changed to
empty. The end-of-buffer region is hidden by setting
eob flag of 'fillchars' to a space char, and clearing
the |hl-EndOfBuffer| region in 'winhighlight'

You could create an autocmd like

vim.api.nvim_create_autocmd("FileType", {
	

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Shimoon
Comment options

Answer selected by Shimoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants