Skip to content

Instantly share code, notes, and snippets.

@qfdk
Forked from nishantwrp/lvim-cursor-fix.md
Created May 22, 2023 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qfdk/ea886fc885002a8576190dad58866259 to your computer and use it in GitHub Desktop.
Save qfdk/ea886fc885002a8576190dad58866259 to your computer and use it in GitHub Desktop.
Fixing cursor change in lunar vim

Problem

Entering lunarvim changes the default cursor type of terminal.

Solution:

Add the following lines to your config.lua

lvim.autocommands = {
  {
    "VimLeave",
    {
      pattern = "*",
      command = "set guicursor= | call chansend(v:stderr, \"\x1b[ q\")"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment