Evie Litherland-Smith
ea722bb23d
Start checking for executable before registering lsp server Add missing dependencies for direnv, indent_blankline and nvim_neorg Add standard .cspell.json, make now links it to home directory
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
BIN_DIR := $(HOME)/.local/bin
|
|
FONTS_DIR := $(HOME)/.fonts
|
|
|
|
.PHONY: default clean nvim firacode cspell
|
|
|
|
default: nvim firacode cspell
|
|
|
|
clean:
|
|
-rm -rf $(HOME)/.local/share/nvim
|
|
-rm -rf $(HOME)/.local/state/nvim
|
|
-rm -rf $(HOME)/.cache/nvim
|
|
-rm $(BIN_DIR)/nvim
|
|
-rm -rf $(FONTS_DIR)/FiraCode
|
|
-rm $(HOME)/.cspell.json
|
|
|
|
nvim: $(BIN_DIR)
|
|
command -v nvim > /dev/null && exit 0
|
|
curl -sSLO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
|
|
curl -sSLO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage.sha256sum
|
|
sha256sum -c nvim.appimage.sha256sum || {
|
|
rm nvim.appimage nvim.appimage.sha256sum
|
|
exit 1
|
|
}
|
|
rm nvim.appimage.sha256sum
|
|
chmod a+x nvim.appimage
|
|
mv nvim.appimage $(HOME)/.local/bin/nvim
|
|
|
|
# direnv: $(BIN_DIR)
|
|
# bin_path="$(BIN_DIR)" ./installers/direnv.sh
|
|
|
|
firacode: $(FONTS_DIR)/
|
|
|
|
firacode: $(FONTS_DIR)
|
|
command -v fc-cache > /dev/null || exit 1
|
|
command -v fc-list > /dev/null || exit 1
|
|
fc-list | grep -iE "(fira.*code)*(nerd.*font)" > /dev/null && exit 0
|
|
mkdir -p $(FONTS_DIR) && cd $(FONTS_DIR)
|
|
curl -sSLO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.0/FiraCode.zip
|
|
unzip FiraCode.zip -d FiraCode
|
|
rm FiraCode.zip
|
|
fc-cache
|
|
|
|
cspell: $(HOME)/.cspell.json
|
|
|
|
$(HOME)/.cspell.json:
|
|
-ln -s $$(readlink -f .cspell.json) $@
|
|
|
|
$(BIN_DIR) $(FONTS_DIR):
|
|
mkdir -p $@
|