You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the new appearance for the cursor in vi_mode is a vertical line for insert mode and a block for normal mode. Is there a configuration option to revert to a block for all modes?
At least exiting nu should revert the cursor to normal. But if nu can't know what the original cursor is, then I think this behavior should be disabled by default.
Reacted by L. Yeung, Csányi István, Vanilla, Bart Libert and Alexander Hirner
The nushell/reedline#515 PR has been merged but I still couldn't find a way to configure it from nushell.
Also I strongly think by default nu shouldn't change the cursor set by the terminal.
If you're on the latest main branch, you can configure it by adding this to your config.nu.
cursor_shape: {
vi_insert: underscore
vi_normal: block
emacs: line
}
IIRC, I believe it will overwrite the terminal setting with or without setting this information. Maybe someone should look at that in the future. I'm just glad to get rid of the friggin block finally.
Reacted by Csányi István, Bruce Weirdan, Nazmul Idris and Josiah Nunemaker
Just stumbled upon this issue: I'm not sure where to add the cursor_shape config? config.nu is huge and there are lots of entries. I tried pasting this at the end of the file but this resulted in an error.
This change, I mentioned above, could go anywhere within the config section of the config.nu. You can identify this part of the config by finding let-env config = {. Anywhere before the last } would work.
So, you'd want something like, if you wanted it as the first thing in your config.nu.
let-env config = {
cursor_shape: {
vi_insert: underscore
vi_normal: block
emacs: line
}
... all the rest of your config
}
You could also look at the default_config.nu in the repo, which shows where it goes.
But why doesn't ...
It probably should but it doesn't yet. Of course, this gives you a different option too. With this config option, you can different cursors depending on editing mode. Since that mode is specific to nushell, I doubt any terminal configuration would recognize it.
Should I raise a new issue? Using the same terminal emulator, but with bash, I see a large, bold, black cursor block, instead of this very thin vertical line. See my screenshot; can you see the cursor at a glance? It's on the vi_insert line:
when i run Neovim i have a completely different cursor, it's not even switching from large to thin underscore, but rather between a vertical bar in Nushell and a block in NORMAL mode in Neovim 😕
@dedguy21 the cursor_shapevi_insert and vi_normal configs are not for inside vi/vim. They are for when nushell's prompt itself is set up to be in vim-like-mode (edit_mode: vi) – and that doesn't have visual or replace mode AFAIK.
Activity
fdncred commentedon Nov 16, 2022
There is no config option yet, but it's planned. Planned, meaning that no one has done it yet but we want it.
KSXGitHub commentedon Nov 29, 2022
At least exiting nu should revert the cursor to normal. But if nu can't know what the original cursor is, then I think this behavior should be disabled by default.
fdncred commentedon Nov 29, 2022
FWIW, a PR has been started to make this configurable. nushell/reedline#515
AmionSky commentedon Jan 15, 2023
The nushell/reedline#515 PR has been merged but I still couldn't find a way to configure it from nushell.
Also I strongly think by default nu shouldn't change the cursor set by the terminal.
fdncred commentedon Jan 15, 2023
If you're on the latest main branch, you can configure it by adding this to your config.nu.
IIRC, I believe it will overwrite the terminal setting with or without setting this information. Maybe someone should look at that in the future. I'm just glad to get rid of the friggin block finally.
warpdesign commentedon Jan 19, 2023
Just stumbled upon this issue: I'm not sure where to add the
cursor_shapeconfig?config.nuis huge and there are lots of entries. I tried pasting this at the end of the file but this resulted in an error.warpdesign commentedon Jan 19, 2023
Btw why doesn't
nuuse the shape defined by the terminal app and overwrites it?fdncred commentedon Jan 19, 2023
This change, I mentioned above, could go anywhere within the config section of the config.nu. You can identify this part of the config by finding
let-env config = {. Anywhere before the last}would work.So, you'd want something like, if you wanted it as the first thing in your config.nu.
You could also look at the
default_config.nuin the repo, which shows where it goes.It probably should but it doesn't yet. Of course, this gives you a different option too. With this config option, you can different cursors depending on editing mode. Since that mode is specific to nushell, I doubt any terminal configuration would recognize it.
ahirner commentedon Apr 7, 2023
Reedline supports not modifying the cursor:
I guess
nushellshould allownullin addition to 'line', 'block', or 'underscore'.tomboland commentedon Jun 22, 2023
Hi, I have this in the default, generated config:
In vim, my cursor is a very fine line, and it's very difficult for me to see. I'm using version 0.81.0, installed with homebrew on MacOS.
amtoine commentedon Jun 22, 2023
yes this is available now, i think we can close this issue as the question has been answered with time 😌
this might have to do with your font? 🤔
my underscore is quite big enough!
tomboland commentedon Jun 22, 2023
Hi,
Should I raise a new issue? Using the same terminal emulator, but with bash, I see a large, bold, black cursor block, instead of this very thin vertical line. See my screenshot; can you see the cursor at a glance? It's on the

vi_insertline:amtoine commentedon Jun 22, 2023
@tomboland
mm i'd say this is a Vim issue 🤔
when i run Neovim i have a completely different cursor, it's not even switching from large to thin underscore, but rather between a vertical bar in Nushell and a block in NORMAL mode in Neovim 😕
amtoine commentedon Jun 22, 2023
what's strange is that Nushell should not have anything to do with the cursor inside either Vim or Neovim, which is what i see on my side...
mb21 commentedon Aug 31, 2023
@tomboland @amtoine I have the same and opened an issue: #10169
Make cursor_shape optional (#10289)
nazmulidris commentedon Sep 19, 2023
On Windows, w/
nuv0.84.0, I had to add the following to myconfig.nufilededguy21 commentedon Oct 17, 2023
I see that there are the two vi_insert & vi_normal. Is there also an option for vi_visual & vi_replace. I don't see it on the documentation.
mb21 commentedon Oct 17, 2023
@dedguy21 the
cursor_shapevi_insertandvi_normalconfigs are not for inside vi/vim. They are for when nushell's prompt itself is set up to be in vim-like-mode (edit_mode: vi) – and that doesn't have visual or replace mode AFAIK.dedguy21 commentedon Oct 17, 2023
@mb21 too bad, I was hoping it would be more like zsh/bash where the vi mode has VISUAL and REPLACE modes as well.
mb21 commentedon Oct 17, 2023
Yeah,
you can like the upstream issue: kkawakam/rustyline#335fdncred commentedon Oct 17, 2023
We don't use rustyline anymore.
itzmesonic commentedon Sep 9, 2024
I want to change it anywhere, how do i do??