Skip to content

Latest commit

Β 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cursor_open.nvim

A Neovim plugin that allows you to open files in Cursor directly from Neovim.

cursor_open_by_neovim.mov

Features

  • Open the current file in Cursor at the exact cursor position
  • Smart workspace detection for Git repositories
  • Option to open in a new Cursor window or reuse existing ones

Installation

use 'yuucu/cursor_open.nvim'

Using lazy.nvim

{
  'yuucu/cursor_open.nvim',
  cmd = { 'CursorOpen' },
  keys = {
    { '<leader>oc', ':CursorOpen<CR>', desc = '[O]pen in [C]ursor' },
    { '<leader>oC', ':CursorOpen!<CR>', desc = '[O]pen in [C]ursor (new window)' },
  },
  config = function()
    require('cursor_open').setup()
  end
}

Setup and Configuration

require('cursor_open').setup({
  -- Default options (these are the defaults)
  keymaps = {
    open = '<leader>oc',           -- Open in Cursor
    open_new = '<leader>oC',       -- Open in new Cursor window
  },
})

Usage

  • :CursorOpen - Open the current file in Cursor
  • :CursorOpen! - Open the current file in a new Cursor window
  • Or use the configured keymaps

Requirements

  • Neovim 0.5.0+
  • Cursor installed and in your PATH

License

MIT

About

πŸš€ A Neovim plugin to instantly open the current file and cursor position in Cursor β€” with smart Git workspace detection and customizable keymaps.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages