Skip to content
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

Is vertical bar supported or only block shape? #33

Closed
rodhash opened this issue Nov 30, 2024 · 3 comments · Fixed by #41
Closed

Is vertical bar supported or only block shape? #33

rodhash opened this issue Nov 30, 2024 · 3 comments · Fixed by #41
Labels
enhancement New feature or enhancement question General question

Comments

@rodhash
Copy link

rodhash commented Nov 30, 2024

Ask your question about configuring or using smear-cursor here.

When cursor shape is set to vertical bar, would be nice to keep the cursor as is but today cursor is changed to block.

Is this supported?

This is neovide behavior (without changing cursor shape):

This is what I have with smear-cursor:

I tried playing with these settings but no luck so far. It always change to block in my tests.

When moving to the side I guess it's expected to see a block char, neovide does that too but when moving up / down it looks nicer to keep the cursor as a vertical bar (like neovide).

Would this be supported?

I actually tried doing that in the settings above but didn't quite work for me.

One more example to better illustrate this. When doing small moves, it feels a bit weird to see cursor changing to block:

Environment (optional)

  • OS: mac sequoia 15.1.1
  • Terminal: iTerm2
  • Neovim version: NVIM v0.11.0-dev-1028+g6dad1f9f1
  • Smear-cursor version/commit: 5babdd4
@rodhash rodhash added the question General question label Nov 30, 2024
@sphamba sphamba added the enhancement New feature or enhancement label Nov 30, 2024
@sphamba
Copy link
Owner

sphamba commented Nov 30, 2024

I believe we are talking about normal mode (the plugin should not smear in insert mode). Unfortunately, the vertical bar cursor is currently unsupported. I opened a new issue (#34) that would cover this one and #7.

In the meantime, you could try switching to the block cursor in normal mode. I think it makes more sense, for example when moving with e or ge, inserting with a, replacing with r... 😉

@rodhash
Copy link
Author

rodhash commented Nov 30, 2024

ok, thanks.

@sphamba
Copy link
Owner

sphamba commented Dec 4, 2024

@rodhash Added an option. You can try the following options:

opts = {
  vertical_bar_cursor = true,
  matrix_pixel_threshold = 0.3,
}

It doesn't really look good though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement question General question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants