Skip to content

Instantly share code, notes, and snippets.

@GaussianWonder
Created June 12, 2022 15:03
Show Gist options
  • Save GaussianWonder/f5cd9982833b8b7dc421789cb6b2783c to your computer and use it in GitHub Desktop.
Save GaussianWonder/f5cd9982833b8b7dc421789cb6b2783c to your computer and use it in GitHub Desktop.
OpenFolder and OpenFile(s) context menu options for kde's file manager DOLPHIN. It uses a script to open a LunarVim config in Neovide.
[Desktop Entry]
Type=Service
Icon=nvim
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=text/plain;
Actions=openFilesInLunarNeovide;
Encoding=UTF-8
X-KDE-AuthorizeAction=shell_access
[Desktop Action openFilesInLunarNeovide]
Name=OpenFile(s) in Neovide
Icon=nvim
Exec=lvide -p %f
[Desktop Entry]
Type=Service
Icon=nvim
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;
Actions=openFolderInLunarNeovide;
Encoding=UTF-8
X-KDE-AuthorizeAction=shell_access
[Desktop Action openFolderInLunarNeovide]
Name=OpenFolder in Neovide
Icon=nvim
Exec=lvide %f
@GaussianWonder
Copy link
Author

Place these files inside the ServiceMenu directory from within

kf5-config --path services

The script to launch LunarVim in Neovide is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment