Skip to content

Instantly share code, notes, and snippets.

@nishantwrp
Created February 18, 2023 20:24
Show Gist options
  • Save nishantwrp/1736251d801f180c996fb5c33333191d to your computer and use it in GitHub Desktop.
Save nishantwrp/1736251d801f180c996fb5c33333191d 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\")"
    }
  }
}
@GandelXIV
Copy link

Works like a charm!

@master-of-none
Copy link

Saved my life.

@qfdk
Copy link

qfdk commented May 22, 2023

Nice work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment