Vim commands && zsh rust plugin
This commit is contained in:
parent
cb84664bea
commit
97adcdf00f
3 changed files with 17 additions and 22 deletions
|
@ -23,17 +23,24 @@ inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||||
let g:coc_global_extensions = [
|
let g:coc_global_extensions = [
|
||||||
\'coc-pairs',
|
\'coc-pairs',
|
||||||
\'coc-json',
|
\'coc-json',
|
||||||
|
\'coc-git',
|
||||||
\'coc-pyright',
|
\'coc-pyright',
|
||||||
\'coc-go',
|
\'coc-go',
|
||||||
\'coc-rust-analyzer',
|
\'coc-rust-analyzer',
|
||||||
\'coc-clangd',
|
\'coc-clangd',
|
||||||
\'coc-html',
|
\'coc-html',
|
||||||
\'coc-css',
|
\'coc-css',
|
||||||
\'coc-tsserver'
|
\'coc-tsserver',
|
||||||
|
\'coc-flutter'
|
||||||
\]
|
\]
|
||||||
|
|
||||||
" GoTo code navigation.
|
" GoTo code navigation.
|
||||||
nmap <silent> gd <Plug>(coc-definition)
|
nmap <leader>def <Plug>(coc-definition)
|
||||||
nmap <silent> gy <Plug>(coc-type-definition)
|
nmap <leader>typedef <Plug>(coc-type-definition)
|
||||||
nmap <silent> gi <Plug>(coc-implementation)
|
nmap <leader>impl <Plug>(coc-implementation)
|
||||||
nmap <silent> gr <Plug>(coc-references)
|
nmap <leader>ref <Plug>(coc-references)
|
||||||
|
|
||||||
|
" Misc coc-commands
|
||||||
|
nmap <leader>rename <Plug>(coc-rename)
|
||||||
|
nmap <leader>help :CocDiagnostics<CR>
|
||||||
|
nmap <leader>git <Plug>(coc-git-commit)
|
||||||
|
|
7
.zshrc
7
.zshrc
|
@ -17,8 +17,7 @@ plugins=(
|
||||||
golang
|
golang
|
||||||
docker
|
docker
|
||||||
docker-compose
|
docker-compose
|
||||||
cargo
|
rust
|
||||||
rustup
|
|
||||||
python
|
python
|
||||||
yarn
|
yarn
|
||||||
)
|
)
|
||||||
|
@ -28,5 +27,7 @@ export GDK_DPI_SCALE=1.5
|
||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=1.5
|
export QT_AUTO_SCREEN_SCALE_FACTOR=1.5
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
export PATH=$PATH:/opt/texlive/2021/bin/x86_64-linux
|
||||||
|
export CHROME_EXECUTABLE=/usr/bin/chromium
|
||||||
|
|
||||||
export $(grep -v '^#' .env | tr -d '"' | xargs -d '\n')
|
# export $(grep -v '^#' .env | tr -d '"' | xargs -d '\n')
|
||||||
|
|
15
setup.sh
15
setup.sh
|
@ -11,19 +11,6 @@ ln -sn $PWD/.config $HOME/.config
|
||||||
ln -s $PWD/.zshrc $HOME/.zshrc
|
ln -s $PWD/.zshrc $HOME/.zshrc
|
||||||
touch $HOME/.z
|
touch $HOME/.z
|
||||||
|
|
||||||
mode "exit: [l]ogout, [r]eboot, [s]hutdown" {
|
|
||||||
bindsym l exec i3-msg exit
|
|
||||||
bindsym r exec systemctl reboot
|
|
||||||
bindsym s exec systemctl shutdown
|
|
||||||
bindsym k exec i3lock; mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
bindsym Return mode "default"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
bindsym $mod+x mode "exit: [l]ogout, [r]eboot, [s]hutdown, loc[k]"
|
|
||||||
|
|
||||||
|
|
||||||
setup_macos() {
|
setup_macos() {
|
||||||
# Install Homebrew
|
# Install Homebrew
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
|
||||||
|
@ -48,4 +35,4 @@ if [[ "$(uname)" == "Linux" ]]; then
|
||||||
$INSTALL_CMD evince neofetch feh
|
$INSTALL_CMD evince neofetch feh
|
||||||
$INSTALL_CMD docker docker-compose
|
$INSTALL_CMD docker docker-compose
|
||||||
$INSTALL_CMD texlive-full
|
$INSTALL_CMD texlive-full
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue