use cargo packages and fzf.vim

This commit is contained in:
Daniel Bauer
2023-06-09 10:08:20 +02:00
parent 0e38be42bc
commit 7c6c579f56
4 changed files with 21 additions and 3 deletions

View File

@@ -21,6 +21,18 @@ if [ ! -d "$HOME/.vim/autoload" ]; then
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi 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 # linking dotfiles
$HOME/.dotfiles/dotfiles.sh link base $HOME/.dotfiles/dotfiles.sh link base

View File

@@ -7,6 +7,10 @@ if type nvim > /dev/null; then
alias vim=nvim alias vim=nvim
fi fi
if type bat > /dev/null; then
alias cat=bat
fi
# file type aliases # file type aliases
alias -s txt=vim alias -s txt=vim
alias -s md=vim alias -s md=vim

View File

@@ -17,6 +17,4 @@ fi
# Change Path # Change Path
export PATH="${PATH}:$HOME/.local/bin" export PATH="${PATH}:$HOME/.local/bin"
export PATH="${PATH}:$HOME/bin" export PATH="${PATH}:$HOME/bin"
if [ -d $HOME/.cargo ]; then
export PATH="${PATH}:$HOME/.cargo/bin" export PATH="${PATH}:$HOME/.cargo/bin"
fi

View File

@@ -9,6 +9,10 @@ Plug 'nathanaelkane/vim-indent-guides'
" ** features ** " ** features **
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
Plug 'preservim/nerdcommenter' Plug 'preservim/nerdcommenter'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
nnoremap <C-f> :Files<Cr>
nnoremap <C-g> :Rg<Cr>
" ** syntax ** " ** syntax **
Plug 'elzr/vim-json' Plug 'elzr/vim-json'