mirror of
https://github.com/alrayyes/server-dotfiles
synced 2023-11-14 15:56:25 +00:00
Compare commits
4 Commits
c213a9ac33
...
daa0278c5a
Author | SHA1 | Date | |
---|---|---|---|
daa0278c5a | |||
e8d118bd2b | |||
|
56bcc65b39 | ||
|
288269a111 |
24
README.org
24
README.org
@ -38,15 +38,12 @@ A repository of my personal server configuration files.
|
|||||||
- [[http://www.gnu.org/software/stow/][stow]]
|
- [[http://www.gnu.org/software/stow/][stow]]
|
||||||
|
|
||||||
* Applications
|
* Applications
|
||||||
- [[https://github.com/sharkdp/bat][bat]]
|
|
||||||
- [[https://github.com/alacritty/alacritty][alacritty]]
|
|
||||||
- [[https://the.exa.website/][exa]]
|
- [[https://the.exa.website/][exa]]
|
||||||
|
- [[https://github.com/junegunn/fzf][fzf]]
|
||||||
- [[https://git-scm.com/][git]]
|
- [[https://git-scm.com/][git]]
|
||||||
- [[https://gnupg.org/][gnupg]]
|
|
||||||
- [[https://github.com/gokcehan/lf][lf]]
|
- [[https://github.com/gokcehan/lf][lf]]
|
||||||
- [[https://neovim.io/][neovim]]
|
- [[https://neovim.io/][neovim]]
|
||||||
- [[https://tmux.github.io/][tmux]]
|
- [[https://tmux.github.io/][tmux]]
|
||||||
- [[https://vifm.info/][vifm]]
|
|
||||||
|
|
||||||
* Zsh
|
* Zsh
|
||||||
** Theme
|
** Theme
|
||||||
@ -57,6 +54,7 @@ A repository of my personal server configuration files.
|
|||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker][docker]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker][docker]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose][docker-compose]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose][docker-compose]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/extract][extract]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/extract][extract]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/fzf][fzf]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git][git]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git][git]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gitignore][gitignore]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gitignore][gitignore]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/ripgrep][ripgrep]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/ripgrep][ripgrep]]
|
||||||
@ -65,6 +63,7 @@ A repository of my personal server configuration files.
|
|||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/systemd][systemd]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/systemd][systemd]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux][tmux]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux][tmux]]
|
||||||
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vi-mode][vi-mode]]
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vi-mode][vi-mode]]
|
||||||
|
- [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/yarn][yarn]]
|
||||||
- [[https://github.com/zsh-users/zsh-autosuggestions][zsh-autosuggestions]]
|
- [[https://github.com/zsh-users/zsh-autosuggestions][zsh-autosuggestions]]
|
||||||
- [[https://github.com/zsh-users/zsh-syntax-highlighting][zsh-syntax-highlighting]]
|
- [[https://github.com/zsh-users/zsh-syntax-highlighting][zsh-syntax-highlighting]]
|
||||||
|
|
||||||
@ -84,20 +83,19 @@ A repository of my personal server configuration files.
|
|||||||
|
|
||||||
* Neovim
|
* Neovim
|
||||||
** Theme
|
** Theme
|
||||||
- [[https://github.com/morhetz/gruvbox][gruvbox]]
|
- [[https://github.com/gruvbox-community/gruvbox-][gruvbox]]
|
||||||
** Plugin Manager
|
** Plugin Manager
|
||||||
- [[https://github.com/junegunn/vim-plug][vim-plug]]
|
- [[https://github.com/junegunn/vim-plug][vim-plug]]
|
||||||
** Plugins
|
** Plugins
|
||||||
*** General
|
*** General
|
||||||
- [[https://github.com/bling/vim-bufferline][bling/vim-bufferline]]
|
- [[https://github.com/bling/vim-bufferline][bling/vim-bufferline]]
|
||||||
- [[easymotion/vim-easymotion]]
|
- [[https://github.com/ctrlpvim/ctrlp.vim][ctrlp/ctrlp.vim]]
|
||||||
- [[https://github.com/farmergreg/vim-lastplace][farmergreg/vim-lastplace]]
|
- [[https://github.com/farmergreg/vim-lastplace][farmergreg/vim-lastplace]]
|
||||||
- [[https://github.com/jiangmiao/auto-pairs][jiangmiao/auto-pairs]]
|
-[[https://github.com/junegunn/fzf][ junegunn/fzf]]
|
||||||
- [[https://github.com/kien/ctrlp.vim][kien/ctrlp.vim]]
|
- [[https://github.com/justinmk/vim-sneak][justinmk/vim-sneak]]
|
||||||
- [[https://github.com/mbbill/undotree][mbbill/undotree]]
|
- [[https://github.com/mbbill/undotree][mbbill/undotree]]
|
||||||
- [[https://github.com/mhinz/vim-signify][mhinz/vim-signify]]
|
- [[https://github.com/mhinz/vim-signify][mhinz/vim-signify]]
|
||||||
- [[https://github.com/myusuf3/numbers.vim][myusuf3/numbers.vim]]
|
- [[https://github.com/myusuf3/numbers.vim][myusuf3/numbers.vim]]
|
||||||
- [[https://github.com/nathanaelkane/vim-indent-guides][nathanaelkane/vim-indent-guides]]
|
|
||||||
- [[https://github.com/preservim/nerdtree][preservim/nerdtree]]
|
- [[https://github.com/preservim/nerdtree][preservim/nerdtree]]
|
||||||
- [[https://github.com/rhysd/conflict-marker.vim][rhysd/conflict-marker.vim]]
|
- [[https://github.com/rhysd/conflict-marker.vim][rhysd/conflict-marker.vim]]
|
||||||
- [[https://github.com/terryma/vim-multiple-cursors][terryma/vim-multiple-cursors]]
|
- [[https://github.com/terryma/vim-multiple-cursors][terryma/vim-multiple-cursors]]
|
||||||
@ -105,13 +103,15 @@ A repository of my personal server configuration files.
|
|||||||
- [[https://github.com/tpope/vim-surround][tpope/vim-surround]]
|
- [[https://github.com/tpope/vim-surround][tpope/vim-surround]]
|
||||||
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
|
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
|
||||||
*** Programming
|
*** Programming
|
||||||
- [[https://github.com/autozimu/LanguageClient-neovim][autozimu/LanguageClient-neovim]]
|
- [[https://github.com/airblade/vim-gitgutter][airblade/vim-gitgutter]]
|
||||||
|
- [[https://github.com/dense-analysis/ale][dense-analysis/ale]]
|
||||||
- [[https://github.com/godlygeek/tabular][godlygeek/tabular]]
|
- [[https://github.com/godlygeek/tabular][godlygeek/tabular]]
|
||||||
- [[https://github.com/majutsushi/tagbar][majutsushi/tagbar]]
|
|
||||||
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]
|
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]
|
||||||
- [[https://github.com/Shougo/deoplete.nvim][Shougo/deoplete.nvim]]
|
- [[https://github.com/RRethy/vim-hexokinase][RRethy/vim-hexokinase]]
|
||||||
|
- [[https://github.com/sheerun/vim-polyglot][sheerun/vim-polyglot]]
|
||||||
- [[https://github.com/tpope/vim-fugitive][tpope/vim-fugitive]]
|
- [[https://github.com/tpope/vim-fugitive][tpope/vim-fugitive]]
|
||||||
- [[https://github.com/Xuyuanp/nerdtree-git-plugin][Xuyuanp/nerdtree-git-plugin]]
|
- [[https://github.com/Xuyuanp/nerdtree-git-plugin][Xuyuanp/nerdtree-git-plugin]]
|
||||||
|
-[[https://github.com/Yggdroot/indentLine][ Yggdroot/indentLine]]
|
||||||
*** UI
|
*** UI
|
||||||
- [[https://github.com/morhetz/gruvbox][morhetz/gruvbox]]
|
- [[https://github.com/morhetz/gruvbox][morhetz/gruvbox]]
|
||||||
- [[https://github.com/ryanoasis/vim-devicons][ryanoasis/vim-devicons]]
|
- [[https://github.com/ryanoasis/vim-devicons][ryanoasis/vim-devicons]]
|
||||||
|
@ -12,22 +12,31 @@ end
|
|||||||
path_if_exists ~/.config/yarn/global/node_modules/.bin
|
path_if_exists ~/.config/yarn/global/node_modules/.bin
|
||||||
path_if_exists ~/.local/bin
|
path_if_exists ~/.local/bin
|
||||||
path_if_exists ~/.emacs.d/bin
|
path_if_exists ~/.emacs.d/bin
|
||||||
|
path_if_exists ~/.local/share/go/bin
|
||||||
|
path_if_exists ~/.local/share/cargo/bin
|
||||||
|
|
||||||
# Set GPG TTY
|
# Set GPG TTY
|
||||||
set GPG_TTY (tty)
|
set GPG_TTY (tty)
|
||||||
|
|
||||||
# pkg editor
|
|
||||||
set -g VISUAL "nvim"
|
|
||||||
|
|
||||||
# editor
|
# editor
|
||||||
set -g EDITOR "nvim"
|
set -xg EDITOR "nvim"
|
||||||
|
|
||||||
# bobthefish
|
# bobthefish
|
||||||
set -g theme_nerd_fonts yes
|
set -xg theme_nerd_fonts yes
|
||||||
set -g theme_color_scheme gruvbox
|
set -xg theme_color_scheme gruvbox
|
||||||
|
|
||||||
# sudope
|
# sudope
|
||||||
set -g sudope_sequence \e\e
|
set -xg sudope_sequence \e\e
|
||||||
|
|
||||||
|
# Set tmux tmpdir to proper directory
|
||||||
|
set -xg TMUX_TMPDIR "$XDG_RUNTIME_DIR"
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
set -xg CARGO_HOME ~/.local/share/cargo
|
||||||
|
set -xg RUSTUP_HOME ~/.local/share/rustup
|
||||||
|
|
||||||
|
# Golang
|
||||||
|
set -xg GOPATH ~/.local/share/go
|
||||||
|
|
||||||
# nvim alias
|
# nvim alias
|
||||||
alias v="nvim"
|
alias v="nvim"
|
||||||
@ -37,11 +46,180 @@ alias sv="sudo nvim"
|
|||||||
alias ls="exa"
|
alias ls="exa"
|
||||||
alias l="exa -al"
|
alias l="exa -al"
|
||||||
|
|
||||||
# vifm alias
|
|
||||||
alias vifm="vifmrun"
|
|
||||||
|
|
||||||
# git alaises
|
# git alaises
|
||||||
alias gpoat="git push origin --all && git push origin --tags"
|
alias gpoat="git push origin --all && git push origin --tags"
|
||||||
|
alias gs="git status"
|
||||||
|
alias gd="git diff"
|
||||||
|
alias g="git"
|
||||||
|
|
||||||
|
# Prevent mv & rm oopsies
|
||||||
|
alias mv="mv -i"
|
||||||
|
alias rm="rm -i"
|
||||||
|
|
||||||
|
# Load lfcd wiith proper icons
|
||||||
|
function lf
|
||||||
|
set -lx LF_ICONS "\
|
||||||
|
di=:\
|
||||||
|
fi=:\
|
||||||
|
ln=:\
|
||||||
|
or=:\
|
||||||
|
ex=:\
|
||||||
|
*.c=:\
|
||||||
|
*.cc=:\
|
||||||
|
*.clj=:\
|
||||||
|
*.coffee=:\
|
||||||
|
*.cpp=:\
|
||||||
|
*.css=:\
|
||||||
|
*.d=:\
|
||||||
|
*.dart=:\
|
||||||
|
*.erl=:\
|
||||||
|
*.exs=:\
|
||||||
|
*.fs=:\
|
||||||
|
*.go=:\
|
||||||
|
*.h=:\
|
||||||
|
*.hh=:\
|
||||||
|
*.hpp=:\
|
||||||
|
*.hs=:\
|
||||||
|
*.html=:\
|
||||||
|
*.java=:\
|
||||||
|
*.jl=:\
|
||||||
|
*.js=:\
|
||||||
|
*.json=:\
|
||||||
|
*.lua=:\
|
||||||
|
*.md=:\
|
||||||
|
*.php=:\
|
||||||
|
*.pl=:\
|
||||||
|
*.pro=:\
|
||||||
|
*.py=:\
|
||||||
|
*.rb=:\
|
||||||
|
*.rs=:\
|
||||||
|
*.scala=:\
|
||||||
|
*.ts=:\
|
||||||
|
*.vim=:\
|
||||||
|
*.cmd=:\
|
||||||
|
*.ps1=:\
|
||||||
|
*.sh=:\
|
||||||
|
*.bash=:\
|
||||||
|
*.zsh=:\
|
||||||
|
*.fish=:\
|
||||||
|
*.tar=:\
|
||||||
|
*.tgz=:\
|
||||||
|
*.arc=:\
|
||||||
|
*.arj=:\
|
||||||
|
*.taz=:\
|
||||||
|
*.lha=:\
|
||||||
|
*.lz4=:\
|
||||||
|
*.lzh=:\
|
||||||
|
*.lzma=:\
|
||||||
|
*.tlz=:\
|
||||||
|
*.txz=:\
|
||||||
|
*.tzo=:\
|
||||||
|
*.t7z=:\
|
||||||
|
*.zip=:\
|
||||||
|
*.z=:\
|
||||||
|
*.dz=:\
|
||||||
|
*.gz=:\
|
||||||
|
*.lrz=:\
|
||||||
|
*.lz=:\
|
||||||
|
*.lzo=:\
|
||||||
|
*.xz=:\
|
||||||
|
*.zst=:\
|
||||||
|
*.tzst=:\
|
||||||
|
*.bz2=:\
|
||||||
|
*.bz=:\
|
||||||
|
*.tbz=:\
|
||||||
|
*.tbz2=:\
|
||||||
|
*.tz=:\
|
||||||
|
*.deb=:\
|
||||||
|
*.rpm=:\
|
||||||
|
*.jar=:\
|
||||||
|
*.war=:\
|
||||||
|
*.ear=:\
|
||||||
|
*.sar=:\
|
||||||
|
*.rar=:\
|
||||||
|
*.alz=:\
|
||||||
|
*.ace=:\
|
||||||
|
*.zoo=:\
|
||||||
|
*.cpio=:\
|
||||||
|
*.7z=:\
|
||||||
|
*.rz=:\
|
||||||
|
*.cab=:\
|
||||||
|
*.wim=:\
|
||||||
|
*.swm=:\
|
||||||
|
*.dwm=:\
|
||||||
|
*.esd=:\
|
||||||
|
*.jpg=:\
|
||||||
|
*.jpeg=:\
|
||||||
|
*.mjpg=:\
|
||||||
|
*.mjpeg=:\
|
||||||
|
*.gif=:\
|
||||||
|
*.bmp=:\
|
||||||
|
*.pbm=:\
|
||||||
|
*.pgm=:\
|
||||||
|
*.ppm=:\
|
||||||
|
*.tga=:\
|
||||||
|
*.xbm=:\
|
||||||
|
*.xpm=:\
|
||||||
|
*.tif=:\
|
||||||
|
*.tiff=:\
|
||||||
|
*.png=:\
|
||||||
|
*.svg=:\
|
||||||
|
*.svgz=:\
|
||||||
|
*.mng=:\
|
||||||
|
*.pcx=:\
|
||||||
|
*.mov=:\
|
||||||
|
*.mpg=:\
|
||||||
|
*.mpeg=:\
|
||||||
|
*.m2v=:\
|
||||||
|
*.mkv=:\
|
||||||
|
*.webm=:\
|
||||||
|
*.ogm=:\
|
||||||
|
*.mp4=:\
|
||||||
|
*.m4v=:\
|
||||||
|
*.mp4v=:\
|
||||||
|
*.vob=:\
|
||||||
|
*.qt=:\
|
||||||
|
*.nuv=:\
|
||||||
|
*.wmv=:\
|
||||||
|
*.asf=:\
|
||||||
|
*.rm=:\
|
||||||
|
*.rmvb=:\
|
||||||
|
*.flc=:\
|
||||||
|
*.avi=:\
|
||||||
|
*.fli=:\
|
||||||
|
*.flv=:\
|
||||||
|
*.gl=:\
|
||||||
|
*.dl=:\
|
||||||
|
*.xcf=:\
|
||||||
|
*.xwd=:\
|
||||||
|
*.yuv=:\
|
||||||
|
*.cgm=:\
|
||||||
|
*.emf=:\
|
||||||
|
*.ogv=:\
|
||||||
|
*.ogx=:\
|
||||||
|
*.aac=:\
|
||||||
|
*.au=:\
|
||||||
|
*.flac=:\
|
||||||
|
*.m4a=:\
|
||||||
|
*.mid=:\
|
||||||
|
*.midi=:\
|
||||||
|
*.mka=:\
|
||||||
|
*.mp3=:\
|
||||||
|
*.mpc=:\
|
||||||
|
*.ogg=:\
|
||||||
|
*.ra=:\
|
||||||
|
*.wav=:\
|
||||||
|
*.oga=:\
|
||||||
|
*.opus=:\
|
||||||
|
*.spx=:\
|
||||||
|
*.xspf=:\
|
||||||
|
*.pdf=:\
|
||||||
|
*.nix=:\
|
||||||
|
"
|
||||||
|
|
||||||
|
/usr/bin/lf
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
# bat
|
# bat
|
||||||
alias bat="batcat"
|
alias bat="batcat"
|
||||||
|
@ -13,15 +13,17 @@
|
|||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
" General {
|
" General {
|
||||||
|
" Navigation {
|
||||||
|
Plug 'unblevable/quick-scope'
|
||||||
|
" }
|
||||||
Plug 'bling/vim-bufferline'
|
Plug 'bling/vim-bufferline'
|
||||||
Plug 'easymotion/vim-easymotion'
|
|
||||||
Plug 'farmergreg/vim-lastplace'
|
Plug 'farmergreg/vim-lastplace'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'junegunn/fzf'
|
||||||
Plug 'kien/ctrlp.vim'
|
Plug 'justinmk/vim-sneak'
|
||||||
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
Plug 'mbbill/undotree'
|
Plug 'mbbill/undotree'
|
||||||
Plug 'mhinz/vim-signify'
|
Plug 'mhinz/vim-signify'
|
||||||
Plug 'myusuf3/numbers.vim'
|
Plug 'myusuf3/numbers.vim'
|
||||||
Plug 'nathanaelkane/vim-indent-guides'
|
|
||||||
Plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'rhysd/conflict-marker.vim'
|
Plug 'rhysd/conflict-marker.vim'
|
||||||
Plug 'terryma/vim-multiple-cursors'
|
Plug 'terryma/vim-multiple-cursors'
|
||||||
@ -30,27 +32,24 @@
|
|||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
" }
|
" }
|
||||||
|
|
||||||
|
|
||||||
" Programming {
|
" Programming {
|
||||||
Plug 'autozimu/LanguageClient-neovim', {
|
Plug 'airblade/vim-gitgutter'
|
||||||
\ 'branch': 'next',
|
Plug 'dense-analysis/ale'
|
||||||
\ 'do': 'bash install.sh',
|
|
||||||
\ }
|
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'godlygeek/tabular'
|
||||||
if executable('ctags')
|
|
||||||
Plug 'majutsushi/tagbar'
|
|
||||||
endif
|
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
|
Plug 'Yggdroot/indentLine'
|
||||||
" }
|
" }
|
||||||
|
|
||||||
" UI {
|
" UI {
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'gruvbox-community/gruvbox'
|
||||||
" This has to be loaded last to work
|
" This has to be loaded last to work
|
||||||
Plug 'ryanoasis/vim-devicons'
|
Plug 'ryanoasis/vim-devicons'
|
||||||
" }
|
" }
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
" }
|
" }
|
||||||
|
|
||||||
@ -78,6 +77,7 @@
|
|||||||
highlight clear LineNr " Current line number row will have same background color in relative mode
|
highlight clear LineNr " Current line number row will have same background color in relative mode
|
||||||
|
|
||||||
set ignorecase " Ignore case on search
|
set ignorecase " Ignore case on search
|
||||||
|
set smartcase " Don't ignore upper case characters on search
|
||||||
set scrolljump=5 " Lines to scroll when cursor leaves screen
|
set scrolljump=5 " Lines to scroll when cursor leaves screen
|
||||||
set scrolloff=3 " Minimum lines to keep above and below cursor
|
set scrolloff=3 " Minimum lines to keep above and below cursor
|
||||||
set foldenable " Auto fold code
|
set foldenable " Auto fold code
|
||||||
@ -110,6 +110,16 @@
|
|||||||
vnoremap < <gv
|
vnoremap < <gv
|
||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
|
|
||||||
|
" LanguageClient-neovim
|
||||||
|
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
||||||
|
map <Leader>lk :call LanguageClient#textDocument_hover()<CR>
|
||||||
|
map <Leader>lg :call LanguageClient#textDocument_definition()<CR>
|
||||||
|
map <Leader>lr :call LanguageClient#textDocument_rename()<CR>
|
||||||
|
map <Leader>lf :call LanguageClient#textDocument_formatting()<CR>
|
||||||
|
map <Leader>lb :call LanguageClient#textDocument_references()<CR>
|
||||||
|
map <Leader>la :call LanguageClient#textDocument_codeAction()<CR>
|
||||||
|
map <Leader>ls :call LanguageClient#textDocument_documentSymbol()<CR>
|
||||||
|
|
||||||
" For when you forget to sudo.. Really Write the file.
|
" For when you forget to sudo.. Really Write the file.
|
||||||
cmap w!! w !sudo tee % >/dev/null
|
cmap w!! w !sudo tee % >/dev/null
|
||||||
" }
|
" }
|
||||||
@ -135,13 +145,6 @@
|
|||||||
map <C-e> :NERDTreeToggle<CR>
|
map <C-e> :NERDTreeToggle<CR>
|
||||||
" }
|
" }
|
||||||
|
|
||||||
" Tagbar {
|
|
||||||
if executable('ctags')
|
|
||||||
" Tagbar panel
|
|
||||||
map <Leader>tt :TagbarToggle<CR>
|
|
||||||
endif
|
|
||||||
" }
|
|
||||||
|
|
||||||
" NerdCommenter {
|
" NerdCommenter {
|
||||||
" Add spaces after comment delimiters by default
|
" Add spaces after comment delimiters by default
|
||||||
let g:NERDSpaceDelims = 1
|
let g:NERDSpaceDelims = 1
|
||||||
@ -152,8 +155,22 @@
|
|||||||
let g:airline_powerline_fonts=1
|
let g:airline_powerline_fonts=1
|
||||||
" }
|
" }
|
||||||
|
|
||||||
" Deoplete {
|
" hexokinase {
|
||||||
" Load deoplete on startup
|
set termguicolors
|
||||||
let g:deoplete#enable_at_startup = 1
|
" }
|
||||||
|
|
||||||
|
" ale {
|
||||||
|
" Shortcuts jump between linting errors
|
||||||
|
map <silent> [c <Plug>(ale_previous_wrap)
|
||||||
|
nmap <silent> ]c <Plug>(ale_next_wrap)
|
||||||
|
|
||||||
|
let g:ale_sign_error = '❌'
|
||||||
|
let g:ale_sign_warning = '⚠️'
|
||||||
|
|
||||||
|
" Fix files
|
||||||
|
let g:ale_fixers = {'javascript': ['prettier', 'eslint']}
|
||||||
|
|
||||||
|
" Fix files automatically on save
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
" }
|
" }
|
||||||
" }
|
" }
|
||||||
|
@ -18,6 +18,7 @@ zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
|
|||||||
zplug "plugins/docker", from:oh-my-zsh
|
zplug "plugins/docker", from:oh-my-zsh
|
||||||
zplug "plugins/docker-compose", from:oh-my-zsh
|
zplug "plugins/docker-compose", from:oh-my-zsh
|
||||||
zplug "plugins/extract", from:oh-my-zsh
|
zplug "plugins/extract", from:oh-my-zsh
|
||||||
|
zplug "plugins/fzf", from:oh-my-zsh
|
||||||
zplug "plugins/git", from:oh-my-zsh
|
zplug "plugins/git", from:oh-my-zsh
|
||||||
zplug "plugins/gitignore", from:oh-my-zsh
|
zplug "plugins/gitignore", from:oh-my-zsh
|
||||||
zplug "plugins/ripgrep", from:oh-my-zsh
|
zplug "plugins/ripgrep", from:oh-my-zsh
|
||||||
@ -26,9 +27,13 @@ zplug "plugins/systemd", from:oh-my-zsh
|
|||||||
zplug "plugins/tmux", from:oh-my-zsh
|
zplug "plugins/tmux", from:oh-my-zsh
|
||||||
zplug "plugins/vi-mode", from:oh-my-zsh
|
zplug "plugins/vi-mode", from:oh-my-zsh
|
||||||
zplug "plugins/sudo", from:oh-my-zsh
|
zplug "plugins/sudo", from:oh-my-zsh
|
||||||
|
zplug "plugins/yarn", from:oh-my-zsh
|
||||||
zplug "zsh-users/zsh-autosuggestions", from:github, defer:3
|
zplug "zsh-users/zsh-autosuggestions", from:github, defer:3
|
||||||
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
|
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
|
||||||
|
|
||||||
|
# Let zplug manage itself
|
||||||
|
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
if ! zplug check --verbose; then
|
if ! zplug check --verbose; then
|
||||||
printf "Install zplug plugins? [y/N]: "
|
printf "Install zplug plugins? [y/N]: "
|
||||||
@ -48,13 +53,17 @@ alias sv="sudo nvim"
|
|||||||
alias ls="exa"
|
alias ls="exa"
|
||||||
alias l="exa -al"
|
alias l="exa -al"
|
||||||
|
|
||||||
# vifm alias
|
# tmux
|
||||||
alias vifm="vifmrun"
|
alias tmux="tmux -f ~/.config/tmux/tmux.conf"
|
||||||
|
|
||||||
# Refresh gpg-agent tty in case user switches into an X session
|
# git alaises
|
||||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
alias gpoat="git push origin --all && git push origin --tags"
|
||||||
|
alias gs="git status"
|
||||||
|
alias gd="git diff"
|
||||||
|
alias g="git"
|
||||||
|
|
||||||
source_if_exists ~/.fzf/key-bindings.zsh
|
# Prevent mv & rm oopsies
|
||||||
source_if_exists ~/.fzf/completion.zsh
|
alias mv="mv -i"
|
||||||
|
alias rm="rm -i"
|
||||||
|
|
||||||
neofetch
|
neofetch
|
182
zsh/.zshenv
182
zsh/.zshenv
@ -4,19 +4,189 @@ path_if_exists() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Stop tmux bitching about 256 colours
|
|
||||||
TERM="xterm-256color"
|
|
||||||
|
|
||||||
# PATH
|
# PATH
|
||||||
path_if_exists ~/.config/yarn/global/node_modules/.bin
|
path_if_exists ~/.config/yarn/global/node_modules/.bin
|
||||||
path_if_exists ~/.local/bin
|
path_if_exists ~/.local/bin
|
||||||
path_if_exists ~/.emacs.d/bin
|
path_if_exists ~/.emacs.d/bin
|
||||||
|
path_if_exists ~/.local/share/go/bin
|
||||||
# Set GPG TTY
|
path_if_exists ~/.local/share/cargo/bin
|
||||||
export GPG_TTY="$(tty)"
|
|
||||||
|
|
||||||
# editor
|
# editor
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
export CARGO_HOME=~/.local/share/cargo
|
||||||
|
export RUSTUP_HOME=~/.local/share/rustup
|
||||||
|
|
||||||
|
# Golang
|
||||||
|
export GOPATH=~/.local/share/go
|
||||||
|
|
||||||
|
# Enable icons in lf
|
||||||
|
export LF_ICONS="\
|
||||||
|
tw=:\
|
||||||
|
st=:\
|
||||||
|
ow=:\
|
||||||
|
dt=:\
|
||||||
|
di=:\
|
||||||
|
fi=:\
|
||||||
|
ln=:\
|
||||||
|
or=:\
|
||||||
|
ex=:\
|
||||||
|
*.c=:\
|
||||||
|
*.cc=:\
|
||||||
|
*.clj=:\
|
||||||
|
*.coffee=:\
|
||||||
|
*.cpp=:\
|
||||||
|
*.css=:\
|
||||||
|
*.d=:\
|
||||||
|
*.dart=:\
|
||||||
|
*.erl=:\
|
||||||
|
*.exs=:\
|
||||||
|
*.fs=:\
|
||||||
|
*.go=:\
|
||||||
|
*.h=:\
|
||||||
|
*.hh=:\
|
||||||
|
*.hpp=:\
|
||||||
|
*.hs=:\
|
||||||
|
*.html=:\
|
||||||
|
*.java=:\
|
||||||
|
*.jl=:\
|
||||||
|
*.js=:\
|
||||||
|
*.json=:\
|
||||||
|
*.lua=:\
|
||||||
|
*.md=:\
|
||||||
|
*.php=:\
|
||||||
|
*.pl=:\
|
||||||
|
*.pro=:\
|
||||||
|
*.py=:\
|
||||||
|
*.rb=:\
|
||||||
|
*.rs=:\
|
||||||
|
*.scala=:\
|
||||||
|
*.ts=:\
|
||||||
|
*.vim=:\
|
||||||
|
*.cmd=:\
|
||||||
|
*.ps1=:\
|
||||||
|
*.sh=:\
|
||||||
|
*.bash=:\
|
||||||
|
*.zsh=:\
|
||||||
|
*.fish=:\
|
||||||
|
*.tar=:\
|
||||||
|
*.tgz=:\
|
||||||
|
*.arc=:\
|
||||||
|
*.arj=:\
|
||||||
|
*.taz=:\
|
||||||
|
*.lha=:\
|
||||||
|
*.lz4=:\
|
||||||
|
*.lzh=:\
|
||||||
|
*.lzma=:\
|
||||||
|
*.tlz=:\
|
||||||
|
*.txz=:\
|
||||||
|
*.tzo=:\
|
||||||
|
*.t7z=:\
|
||||||
|
*.zip=:\
|
||||||
|
*.z=:\
|
||||||
|
*.dz=:\
|
||||||
|
*.gz=:\
|
||||||
|
*.lrz=:\
|
||||||
|
*.lz=:\
|
||||||
|
*.lzo=:\
|
||||||
|
*.xz=:\
|
||||||
|
*.zst=:\
|
||||||
|
*.tzst=:\
|
||||||
|
*.bz2=:\
|
||||||
|
*.bz=:\
|
||||||
|
*.tbz=:\
|
||||||
|
*.tbz2=:\
|
||||||
|
*.tz=:\
|
||||||
|
*.deb=:\
|
||||||
|
*.rpm=:\
|
||||||
|
*.jar=:\
|
||||||
|
*.war=:\
|
||||||
|
*.ear=:\
|
||||||
|
*.sar=:\
|
||||||
|
*.rar=:\
|
||||||
|
*.alz=:\
|
||||||
|
*.ace=:\
|
||||||
|
*.zoo=:\
|
||||||
|
*.cpio=:\
|
||||||
|
*.7z=:\
|
||||||
|
*.rz=:\
|
||||||
|
*.cab=:\
|
||||||
|
*.wim=:\
|
||||||
|
*.swm=:\
|
||||||
|
*.dwm=:\
|
||||||
|
*.esd=:\
|
||||||
|
*.jpg=:\
|
||||||
|
*.jpeg=:\
|
||||||
|
*.mjpg=:\
|
||||||
|
*.mjpeg=:\
|
||||||
|
*.gif=:\
|
||||||
|
*.bmp=:\
|
||||||
|
*.pbm=:\
|
||||||
|
*.pgm=:\
|
||||||
|
*.ppm=:\
|
||||||
|
*.tga=:\
|
||||||
|
*.xbm=:\
|
||||||
|
*.xpm=:\
|
||||||
|
*.tif=:\
|
||||||
|
*.tiff=:\
|
||||||
|
*.png=:\
|
||||||
|
*.svg=:\
|
||||||
|
*.svgz=:\
|
||||||
|
*.mng=:\
|
||||||
|
*.pcx=:\
|
||||||
|
*.mov=:\
|
||||||
|
*.mpg=:\
|
||||||
|
*.mpeg=:\
|
||||||
|
*.m2v=:\
|
||||||
|
*.mkv=:\
|
||||||
|
*.webm=:\
|
||||||
|
*.ogm=:\
|
||||||
|
*.mp4=:\
|
||||||
|
*.m4v=:\
|
||||||
|
*.mp4v=:\
|
||||||
|
*.vob=:\
|
||||||
|
*.qt=:\
|
||||||
|
*.nuv=:\
|
||||||
|
*.wmv=:\
|
||||||
|
*.asf=:\
|
||||||
|
*.rm=:\
|
||||||
|
*.rmvb=:\
|
||||||
|
*.flc=:\
|
||||||
|
*.avi=:\
|
||||||
|
*.fli=:\
|
||||||
|
*.flv=:\
|
||||||
|
*.gl=:\
|
||||||
|
*.dl=:\
|
||||||
|
*.xcf=:\
|
||||||
|
*.xwd=:\
|
||||||
|
*.yuv=:\
|
||||||
|
*.cgm=:\
|
||||||
|
*.emf=:\
|
||||||
|
*.ogv=:\
|
||||||
|
*.ogx=:\
|
||||||
|
*.aac=:\
|
||||||
|
*.au=:\
|
||||||
|
*.flac=:\
|
||||||
|
*.m4a=:\
|
||||||
|
*.mid=:\
|
||||||
|
*.midi=:\
|
||||||
|
*.mka=:\
|
||||||
|
*.mp3=:\
|
||||||
|
*.mpc=:\
|
||||||
|
*.ogg=:\
|
||||||
|
*.ra=:\
|
||||||
|
*.wav=:\
|
||||||
|
*.oga=:\
|
||||||
|
*.opus=:\
|
||||||
|
*.spx=:\
|
||||||
|
*.xspf=:\
|
||||||
|
*.pdf=:\
|
||||||
|
*.nix=:\
|
||||||
|
"
|
||||||
|
|
||||||
# Save history file in proper place
|
# Save history file in proper place
|
||||||
HISTFILE=~/.cache/zsh/history
|
HISTFILE=~/.cache/zsh/history
|
||||||
|
|
||||||
|
# Load config files from their proper place
|
||||||
|
ZDOTDIR=~/.config/zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user