1

I have recently started using st. But nvim doesn't change cursor shape like that in gnome-terminal or xfce4-terminal in this terminal. What's more confusing is that it works fine in tmux inside st! I don't know anything about st. So, my question is, what's wrong?

Edit: Very, very, confusing observation. I didn't install st-terminal per se. I cloned and compiled and launched it from rofi menu. But if I launch st from another terminal like xfce4-terminal, it handles nvim cursor changes currectly, although a little slow!

  • 1
    What's the output of echo $TERM when you run it in st inside tmux and when you run it in st outside of tmux? – Rich Mar 26 '18 at 10:01
  • both output st-terminal. And please take a look at the post. I edited it. – klaus Mar 27 '18 at 5:57
4

This should be fixed in the release after 0.2.2. This was reported in neovim/neovim#7641 and the issue was that st's terminfo incorrectly specifies how to change the cursor shape.

The fix in neovim was to ignore what st reports and use the typical values for those escape sequences.

  • You were right. I don't know why sudo apt update didn't bring neovim updates. I had to manually reinstall it. – klaus Mar 27 '18 at 7:28
  • Just to be clear, 0.2.2 is the current release. The next version (which has the fix I mentioned) hasn't been released yet, so reinstalling wouldn't have changed anything unless you're using the nightly PPA. – jamessan Mar 27 '18 at 12:19
  • yes I'm using the dev branch of neovim ppa. Thanks for reaching out. – klaus Mar 27 '18 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.