Skip to content

Open project in VSCode-like editors for Neovim

License

Notifications You must be signed in to change notification settings

tssujt/openinvscode.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

openinvscode.nvim

A Neovim plugin that opens the current project in Visual Studio Code or other VSCode-like editors (Cursor, Windsurf).

Requirements

  • Neovim >= 0.5.0
  • Visual Studio Code (or alternative editor) installed and accessible via command line

Installation

Using packer.nvim:

use 'tssujt/openinvscode.nvim'

Using lazy.nvim:

{
    'tssujt/openinvscode.nvim',
    cmd = 'OpenInVSCode',
    opts = {
        -- configuration options here
    }
}

Configuration

require('openinvscode').setup({
    editor = "code",
})

Usage

The plugin provides the :OpenInVSCode command that opens the current working directory in your configured editor.

You can also create a keybinding in your Neovim configuration:

vim.keymap.set('n', '<leader>vsc', ':OpenInVSCode<CR>', { silent = true })

Examples

Using with Cursor:

require('openinvscode').setup({
    editor = "cursor"
})

Using with Windsurf:

require('openinvscode').setup({
    editor = "windsurf"
})

License

MIT

About

Open project in VSCode-like editors for Neovim

Topics

Resources

License

Stars

Watchers

Forks

Languages