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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Symlink the nvim.desktop so it takes priority in Nautilus
|
# Set nvim.desktop as default so it takes priority in Nautilus
|
||||||
rm $HOME/.local/share/applications/nvim.desktop || true
|
xdg-mime default nvim.desktop text/plain
|
||||||
mkdir -p ~/.local/share/applications
|
xdg-mime default nvim.desktop text/english
|
||||||
ln -s /usr/share/applications/nvim.desktop ~/.local/share/applications/nvim.desktop
|
xdg-mime default nvim.desktop text/x-makefile
|
||||||
update-desktop-database ~/.local/share/applications
|
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!"
|
echo "Neovim setup complete!"
|
||||||
Reference in new issue
Block a user