Skip to content

Commit

Permalink
fix: update nvim path, correct symlinks (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin committed Jul 17, 2024
1 parent fe3ec40 commit 77f41a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .path
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export NVM_DIR="$HOME/.nvm"
export PATH="/usr/local/opt/llvm/bin:$PATH"
export PATH="$HOME/pyenv/bin:$PATH"
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
export GIT_EDITOR="/usr/local/bin/nvim"
export GIT_EDITOR="/opt/homebrew/bin/nvim"
export TERM=xterm-256color
export LANG=en_US.UTF-8
12 changes: 9 additions & 3 deletions makefiles/editors.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Editor configuration setups

.PHONY: nvim

nvim: ## Setup Neovim configuration by linking dotfiles
@$(call mkdir_safe,${XDG_CONFIG_HOME}/nvim)
@for file in $(DOTFILES)/nvim/*; do \
ln -f $$file ${XDG_CONFIG_HOME}/nvim/; \
@for item in $(DOTFILES)/nvim/*; do \
if [ -d "$$item" ]; then \
ln -sfn $$item ${XDG_CONFIG_HOME}/nvim/; \
else \
ln -sf $$item ${XDG_CONFIG_HOME}/nvim/; \
fi; \
done

vim: ## Setup Vim configuration and update submodules
Expand All @@ -23,4 +29,4 @@ ideavim: ## Setup IdeaVim configuration by linking .ideavimrc
$(call symlink,.ideavimrc,${HOME}/.ideavimrc)

gvim: ## Setup GVim configuration by linking .gvimrc
$(call symlink,.gvimrc,${HOME}/.gvimrc)
$(call symlink,.gvimrc,${HOME}/.gvimrc)
4 changes: 3 additions & 1 deletion makefiles/targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
personal: vim vscodevim ideavim gvim nvim vsvim bash zsh personal-git yamllint continue

# Setup work environment
work: vim vscodevim ideavim gvim nvim vsvim bash zsh work-git yamllint continue
work: vim vscodevim ideavim gvim nvim vsvim bash zsh work-git yamllint continue

PHONY: nvim

0 comments on commit 77f41a6

Please sign in to comment.