mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
use cargo packages and fzf.vim
This commit is contained in:
12
install.sh
12
install.sh
@@ -21,6 +21,18 @@ if [ ! -d "$HOME/.vim/autoload" ]; then
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
fi
|
||||
|
||||
# install rust
|
||||
if [ ! -d "$HOME/.cargo" ]; then
|
||||
echo "setup cargo"
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y --profile minimal -q
|
||||
fi
|
||||
|
||||
# install some rust packages
|
||||
for package in ripgrep bat; do
|
||||
echo "setup $package"
|
||||
$HOME/.cargo/bin/cargo install -q $package
|
||||
done
|
||||
|
||||
# linking dotfiles
|
||||
$HOME/.dotfiles/dotfiles.sh link base
|
||||
|
||||
|
||||
@@ -7,6 +7,10 @@ if type nvim > /dev/null; then
|
||||
alias vim=nvim
|
||||
fi
|
||||
|
||||
if type bat > /dev/null; then
|
||||
alias cat=bat
|
||||
fi
|
||||
|
||||
# file type aliases
|
||||
alias -s txt=vim
|
||||
alias -s md=vim
|
||||
|
||||
@@ -17,6 +17,4 @@ fi
|
||||
# Change Path
|
||||
export PATH="${PATH}:$HOME/.local/bin"
|
||||
export PATH="${PATH}:$HOME/bin"
|
||||
if [ -d $HOME/.cargo ]; then
|
||||
export PATH="${PATH}:$HOME/.cargo/bin"
|
||||
fi
|
||||
|
||||
@@ -9,6 +9,10 @@ Plug 'nathanaelkane/vim-indent-guides'
|
||||
" ** features **
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'preservim/nerdcommenter'
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
nnoremap <C-f> :Files<Cr>
|
||||
nnoremap <C-g> :Rg<Cr>
|
||||
|
||||
" ** syntax **
|
||||
Plug 'elzr/vim-json'
|
||||
|
||||
Reference in New Issue
Block a user