gorbit99 / codewindow.nvim

MIT License
431 stars 16 forks source link

[Feature Request] Style options for cursor display #31

Open Roundlay opened 1 year ago

Roundlay commented 1 year ago

Some subtler options for the cursor display set with show_cursor would be great. E.g.:

Frame 2 (1)

gorbit99 commented 1 year ago

Highlight the active line rather than displaying the cursor itself

Not possible, either you highlight an entire block of 4x2 dots or nothing

Represent the cursor as another circle at the minimap's edge, rather than as a block

This sounds nice, though it would make the minimap a bit wider (by one character exactly), I'll look into it later

Represent the cursor as another circle that travels along the minimap border

This at the very least would mean making the border of the window a separate floating window that gets filled in manually. Afterwards the only option you have would be using something like this to display the dot, and sadly that doesn't at all match up with the rest of the border chars. So probably not possible

tis-rpage commented 1 year ago

I'd like to see more cursor options too namely: codewindow.setup({ show_cursor_row = true, })

vim.api.nvim_set_hl(0, "CodewindowCursorRow", {link="ContentCursor"})

This would turn on a highlight group for the cursor row, similar effect to minimap.vim: image