Skip to content

ukyouz/syntax-highlighted-cursor.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syntax Highlighted Cursor

Use your synatx highlighting color for the neovim cursor.

Screenshot

Inspirations

Installation

If you use lazy.nvim, add:

{
    "ukyouz/syntax-highlighted-cursor.nvim",
},

Options

{
    -- If you feel updating cursor color is too often for you, try make debounce_ms bigger.
    debounce_ms = 50,

    -- If your cursor color not change immediately, try set this to true
    -- This setting adds a keymap for `:` to iteslf with quiet flag,
    -- and let vim enter command mode for a moment
    -- to force GUI refreshing cursor color.
    force_refresh_hack = false,

    -- Update Color on every cursor move
    -- If you feel laggy, try set this to false
    when_cursor_moved = true,

    -- Update Color on every cursor hold (delay is updatetime)
    when_cursor_hold = false,
}

Limitations

  • Required Lua, so only work in Neovim
  • Required guicursor support

About

Neovim plugin to make cursor color following syntax highlighting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published