DEV Community

Yash
Yash

Posted on

Add open with Neovide Option in Windows 10

  1. Open Notepad or your preferred text editor

  2. Copy the script below

Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with Neovim]
@="Edit with Neovim"
"Icon"="C:\\Program Files\\neovide\\neovide.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with Neovim\command]
@="\"C:\\Program Files\\neovide\\neovide.exe\" \"%1\""

; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\neovide]
@="Open Folder as Neovim Project"
"Icon"="\"C:\\Program Files\\neovide\\neovide.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\neovide\command]
@="\"C:\\Program Files\\neovide\\neovide.exe\" \"%1\""

; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\neovide]
@="Open Folder as Neovim Project"
"Icon"="\"C:\\Program Files\\neovide\\neovide.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\neovide\command]
@="\"C:\\Program Files\\neovide\\neovide.exe\" \"%V\""
Enter fullscreen mode Exit fullscreen mode
  1. Paste it in the text editor

  2. Save the file as neovideOpenFolder.reg

  3. Run the file.

Now you can have a nice open with Neovim option.

If it doesn't work check the paths of Neovide in the script.
You can also change Neovim to Neovide if you like.

Top comments (1)

Collapse
 
wakuflair profile image
Yuhang Ji

A much simple way, just run command :NeovideRegisterRightClick in Neovide.