Update nvim to be default the right way
This commit is contained in:
1 file changed
+18
-5
@@ -56,10 +56,23 @@ for dir in $DATA_DIR/lazy/*/; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Symlink the nvim.desktop so it takes priority in Nautilus
|
||||
rm $HOME/.local/share/applications/nvim.desktop || true
|
||||
mkdir -p ~/.local/share/applications
|
||||
ln -s /usr/share/applications/nvim.desktop ~/.local/share/applications/nvim.desktop
|
||||
update-desktop-database ~/.local/share/applications
|
||||
# Set nvim.desktop as default so it takes priority in Nautilus
|
||||
xdg-mime default nvim.desktop text/plain
|
||||
xdg-mime default nvim.desktop text/english
|
||||
xdg-mime default nvim.desktop text/x-makefile
|
||||
xdg-mime default nvim.desktop text/x-c++hdr
|
||||
xdg-mime default nvim.desktop text/x-c++src
|
||||
xdg-mime default nvim.desktop text/x-chdr
|
||||
xdg-mime default nvim.desktop text/x-csrc
|
||||
xdg-mime default nvim.desktop text/x-java
|
||||
xdg-mime default nvim.desktop text/x-moc
|
||||
xdg-mime default nvim.desktop text/x-pascal
|
||||
xdg-mime default nvim.desktop text/x-tcl
|
||||
xdg-mime default nvim.desktop text/x-tex
|
||||
xdg-mime default nvim.desktop application/x-shellscript
|
||||
xdg-mime default nvim.desktop text/x-c
|
||||
xdg-mime default nvim.desktop text/x-c++
|
||||
xdg-mime default nvim.desktop application/xml
|
||||
xdg-mime default nvim.desktop text/xml
|
||||
|
||||
echo "Neovim setup complete!"
|
||||
Reference in new issue
Block a user