A Neovim plugin that allows you to open files in Cursor directly from Neovim.
cursor_open_by_neovim.mov
- 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
Using packer.nvim
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
}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
},
}):CursorOpen- Open the current file in Cursor:CursorOpen!- Open the current file in a new Cursor window- Or use the configured keymaps
- Neovim 0.5.0+
- Cursor installed and in your PATH
MIT