Skip to content

Commit

Permalink
Migrate to neovim
Browse files Browse the repository at this point in the history
It's time to try new things this updates my dotfiles to use neovim

NOTE: Powerline is broken
https://www.reddit.com/r/neovim/comments/nlgva2/neovim_and_powerline/
powerline/powerline#1287
  • Loading branch information
JuanCrg90 committed Nov 5, 2021
1 parent f9d5391 commit a3e32e6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
10 changes: 6 additions & 4 deletions vim/vimrc.symlink → vim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ nnoremap <leader>tt :set completefunc=tailwind#complete<cr>
" Add this autocmd to your vimrc to close the preview window after the completion is done
autocmd CompleteDone * pclose

"Powerline Support
set rtp+=$POWERLINE
set laststatus=2
source $POWERLINE
"Powerline Support (Not supported on neovim)
" https://www.reddit.com/r/neovim/comments/nlgva2/neovim_and_powerline/
" https://github.com/powerline/powerline/issues/1287
" set rtp+=$POWERLINE
" set laststatus=2
" source $POWERLINE
16 changes: 8 additions & 8 deletions vim/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
RED='\033[0;31m'
NC='\033[0m' # No Color]]'

echo "[*] Install vim"
brew install vim
echo "[*] Install neovim"
brew install neovim

echo "[*] Create nvim config directory"
mkdir -p ~/config/.init.vim

echo "[*] Create symlink for .vimrc"
ln -sf $(pwd)/vimrc.symlink ~/.vimrc
ln -sf $(pwd)/init.vim ~/.config/nvim/init.vim

# create a symlink for the vim directory
echo "[*] Create symlink for .vim directory"
Expand All @@ -16,12 +19,9 @@ ln -sf $(pwd)/vim.symlink ~/.vim
echo "[*] Create swap files directory"
mkdir ~/.tmp

echo "[*] Download python powerline"
pip3 install --user powerline-status

echo "[*] Download Plug"
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

echo "[*] Done. please enter to vim and run ${RED}:PlugInstall${NC}"

Expand Down
2 changes: 2 additions & 0 deletions vim/vim.symlink/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
bundle
plugged
autoload
1 change: 0 additions & 1 deletion vim/vim.symlink/vim.symlink

This file was deleted.

2 changes: 2 additions & 0 deletions zsh/alias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ alias mysqlpm='mysql -u some_new_user property_manager_development -p'
alias be='bundle exec'
alias ber='bundle exec rails'
alias bert='bundle exec rails test'

alias vim="nvim"

0 comments on commit a3e32e6

Please sign in to comment.