mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-20 05:54:18 +01:00
Resolved the lazyvim checkhealth warnings for luarocks and tree-sitter
This commit is contained in:
@@ -7,26 +7,29 @@ sudo cp -R nvim-linux64/share /usr/local/
|
|||||||
rm -rf nvim-linux64 nvim.tar.gz
|
rm -rf nvim-linux64 nvim.tar.gz
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
# Install luarocks and tree-sitter-cli to resolve lazyvim :checkheatlh warnings
|
||||||
|
sudo apt install -y luarocks tree-sitter-cli
|
||||||
|
|
||||||
# Only attempt to set configuration if Neovim has never been run
|
# Only attempt to set configuration if Neovim has never been run
|
||||||
if [ ! -d "$HOME/.config/nvim" ]; then
|
if [ ! -d "$HOME/.config/nvim" ]; then
|
||||||
# Use LazyVim
|
# Use LazyVim
|
||||||
git clone https://github.com/LazyVim/starter ~/.config/nvim
|
git clone https://github.com/LazyVim/starter ~/.config/nvim
|
||||||
# Remove the .git folder, so you can add it to your own repo later
|
# Remove the .git folder, so you can add it to your own repo later
|
||||||
rm -rf ~/.config/nvim/.git
|
rm -rf ~/.config/nvim/.git
|
||||||
|
|
||||||
# Make everything match the terminal transparency
|
# Make everything match the terminal transparency
|
||||||
mkdir -p ~/.config/nvim/plugin/after
|
mkdir -p ~/.config/nvim/plugin/after
|
||||||
cp ~/.local/share/omakub/configs/neovim/transparency.lua ~/.config/nvim/plugin/after/
|
cp ~/.local/share/omakub/configs/neovim/transparency.lua ~/.config/nvim/plugin/after/
|
||||||
|
|
||||||
# Default to Tokyo Night theme
|
# Default to Tokyo Night theme
|
||||||
cp ~/.local/share/omakub/themes/tokyo-night/neovim.lua ~/.config/nvim/lua/plugins/theme.lua
|
cp ~/.local/share/omakub/themes/tokyo-night/neovim.lua ~/.config/nvim/lua/plugins/theme.lua
|
||||||
|
|
||||||
# Enable default extras
|
# Enable default extras
|
||||||
cp ~/.local/share/omakub/configs/neovim/lazyvim.json ~/.config/nvim/lazyvim.json
|
cp ~/.local/share/omakub/configs/neovim/lazyvim.json ~/.config/nvim/lazyvim.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace desktop launcher with one running inside Alacritty
|
# Replace desktop launcher with one running inside Alacritty
|
||||||
if [[ -d ~/.local/share/applications ]]; then
|
if [[ -d ~/.local/share/applications ]]; then
|
||||||
sudo rm -rf /usr/share/applications/nvim.desktop
|
sudo rm -rf /usr/share/applications/nvim.desktop
|
||||||
source ~/.local/share/omakub/applications/Neovim.sh
|
source ~/.local/share/omakub/applications/Neovim.sh
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user