-
Notifications
You must be signed in to change notification settings - Fork 170
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
Enable block cursor #202
Comments
Any hope for this? Ping @equalsraf I'm not happy with my terminal's (st) rendering speed. neovim-qt is much better, but the line cursor is making it unusable for me. |
diff --git a/src/gui/shell.cpp b/src/gui/shell.cpp
index 526ec5c..498fdd1 100644
--- a/src/gui/shell.cpp
+++ b/src/gui/shell.cpp
@@ -593,10 +593,7 @@ void Shell::paintEvent(QPaintEvent *ev)
bool wide = contents().constValue(m_cursor_pos.y(),
m_cursor_pos.x()).doubleWidth;
QRect cursorRect(neovimCursorTopLeft(), cellSize());
-
- if (m_insertMode) {
- cursorRect.setWidth(2);
- } else if (wide) {
+ if (!m_insertMode && wide) {
cursorRect.setWidth(cursorRect.width()*2);
}
QPainter painter(this); This fixes it for me. |
Note that nvim 0.2 has mode_info_set UI event so guicursor option can be supported by UIs. |
The guicursor option can be used to change the cursor's color, blinking, and shape. Closes equalsraf#202, equalsraf#207, equalsraf#208
The guicursor option can be used to change the cursor's color, blinking, and shape. Closes equalsraf#202, equalsraf#207, equalsraf#208
The guicursor option can be used to change the cursor's color, blinking, and shape. Closes equalsraf#202, equalsraf#207, equalsraf#208
The guicursor option can be used to change the cursor's color, blinking, and shape. Closes equalsraf#202, equalsraf#207, equalsraf#208
The Marking as closed. |
As far as I understand neovim-qt ignores
guicursor
settings and uses a bar cursor in insert mode. It'd be great if existingguicursor
settings worked, or alternatively, ifneovim-qt
provided its own settings for using block cursor.The text was updated successfully, but these errors were encountered: