mirror of
https://github.com/alrayyes/server-dotfiles
synced 2023-11-14 15:56:25 +00:00
Compare commits
No commits in common. "c459edde5d1702dd5cc529681d4780529883ce77" and "1fe01ab0e4327d3d84dac6b1ff27b201b1d9706a" have entirely different histories.
c459edde5d
...
1fe01ab0e4
@ -90,9 +90,9 @@ A repository of my personal server configuration files.
|
|||||||
*** General
|
*** General
|
||||||
- [[https://github.com/bling/vim-bufferline][bling/vim-bufferline]]
|
- [[https://github.com/bling/vim-bufferline][bling/vim-bufferline]]
|
||||||
- [[https://github.com/ctrlpvim/ctrlp.vim][ctrlp/ctrlp.vim]]
|
- [[https://github.com/ctrlpvim/ctrlp.vim][ctrlp/ctrlp.vim]]
|
||||||
- [[https://github.com/easymotion/vim-easymotion][easymotion/vim-easymotion]]
|
|
||||||
- [[https://github.com/farmergreg/vim-lastplace][farmergreg/vim-lastplace]]
|
- [[https://github.com/farmergreg/vim-lastplace][farmergreg/vim-lastplace]]
|
||||||
- [[https://github.com/junegunn/fzf.vim][junegunn/fzf.vim]]
|
-[[https://github.com/junegunn/fzf][ junegunn/fzf]]
|
||||||
|
- [[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]]
|
||||||
@ -104,7 +104,6 @@ A repository of my personal server configuration files.
|
|||||||
- [[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/airblade/vim-gitgutter][airblade/vim-gitgutter]]
|
- [[https://github.com/airblade/vim-gitgutter][airblade/vim-gitgutter]]
|
||||||
- [[https://github.com/alvan/vim-closetag][alvan/vim-closetag]]
|
|
||||||
- [[https://github.com/dense-analysis/ale][dense-analysis/ale]]
|
- [[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/preservim/nerdcommenter][preservim/nerdcommenter]]
|
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]
|
||||||
@ -116,6 +115,7 @@ A repository of my personal server configuration files.
|
|||||||
*** 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]]
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
** Installation
|
** Installation
|
||||||
#+BEGIN_SRC shell
|
#+BEGIN_SRC shell
|
||||||
|
@ -39,12 +39,12 @@ set -xg RUSTUP_HOME ~/.local/share/rustup
|
|||||||
set -xg GOPATH ~/.local/share/go
|
set -xg GOPATH ~/.local/share/go
|
||||||
|
|
||||||
# nvim alias
|
# nvim alias
|
||||||
abbr --add v 'nvim'
|
abbr --add v "nvim"
|
||||||
abbr --add sv 'sudo nvim'
|
abbr --add sv "sudo nvim"
|
||||||
|
|
||||||
# ls alias
|
# ls alias
|
||||||
abbr --add ls 'exa'
|
abbr --add ls "exa"
|
||||||
abbr --add l 'exa -al'
|
abbr --add l "exa -al"
|
||||||
|
|
||||||
# git alaises
|
# git alaises
|
||||||
abbr --add gpoat "git push origin --all && git push origin --tags"
|
abbr --add gpoat "git push origin --all && git push origin --tags"
|
||||||
@ -56,9 +56,6 @@ abbr --add g "git"
|
|||||||
abbr --add mv "mv -i"
|
abbr --add mv "mv -i"
|
||||||
abbr --add rm "rm -i"
|
abbr --add rm "rm -i"
|
||||||
|
|
||||||
# Colorize diff
|
|
||||||
abbr --add diff "diff --color"
|
|
||||||
|
|
||||||
# Load lfcd wiith proper icons
|
# Load lfcd wiith proper icons
|
||||||
function lf
|
function lf
|
||||||
set -lx LF_ICONS "\
|
set -lx LF_ICONS "\
|
||||||
@ -223,6 +220,7 @@ ex=:\
|
|||||||
/usr/bin/lf
|
/usr/bin/lf
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# bat
|
# bat
|
||||||
abbr --add bat "batcat"
|
abbr --add bat "batcat"
|
||||||
|
|
||||||
@ -249,9 +247,3 @@ if set -q FZF_COMPLETE
|
|||||||
bind -M insert \t '__fzf_complete'
|
bind -M insert \t '__fzf_complete'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make fzf use ripgrep if available
|
|
||||||
if type -q rg
|
|
||||||
export FZF_DEFAULT_COMMAND='rg --files'
|
|
||||||
export FZF_DEFAULT_OPTS='-m --height 50% --border'
|
|
||||||
end
|
|
||||||
|
@ -17,9 +17,10 @@
|
|||||||
Plug 'unblevable/quick-scope'
|
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 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf'
|
||||||
|
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'
|
||||||
@ -33,7 +34,6 @@
|
|||||||
|
|
||||||
" Programming {
|
" Programming {
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'alvan/vim-closetag'
|
|
||||||
Plug 'dense-analysis/ale'
|
Plug 'dense-analysis/ale'
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'godlygeek/tabular'
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
@ -168,42 +168,9 @@
|
|||||||
let g:ale_sign_warning = '⚠️'
|
let g:ale_sign_warning = '⚠️'
|
||||||
|
|
||||||
" Fix files
|
" Fix files
|
||||||
let g:ale_fixers = {'javascript': ['prettier', 'eslint'], 'sh': ['shfmt'], 'json': ['prettier']}
|
let g:ale_fixers = {'javascript': ['prettier', 'eslint']}
|
||||||
|
|
||||||
" Fix files automatically on save
|
" Fix files automatically on save
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_fix_on_save = 1
|
||||||
" }
|
" }
|
||||||
|
|
||||||
" easymotion {
|
|
||||||
let g:EasyMotion_do_mapping = 0 " Disable default mappings
|
|
||||||
|
|
||||||
" Jump to anywhere you want with minimal keystrokes, with just one key binding.
|
|
||||||
" `s{char}{label}`
|
|
||||||
nmap s <Plug>(easymotion-overwin-f)
|
|
||||||
" or
|
|
||||||
" `s{char}{char}{label}`
|
|
||||||
" Need one more keystroke, but on average, it may be more comfortable.
|
|
||||||
nmap s <Plug>(easymotion-overwin-f2)
|
|
||||||
|
|
||||||
" Turn on case-insensitive feature
|
|
||||||
let g:EasyMotion_smartcase = 1
|
|
||||||
|
|
||||||
" JK motions: Line motions
|
|
||||||
map <Leader>j <Plug>(easymotion-j)
|
|
||||||
map <Leader>k <Plug>(easymotion-k)
|
|
||||||
" }
|
|
||||||
|
|
||||||
" fzf {
|
|
||||||
nnoremap <silent> <C-f> :Files<CR>
|
|
||||||
nnoremap <silent> <Leader>f :Rg<CR>
|
|
||||||
|
|
||||||
nnoremap <silent> <Leader>f :Rg<CR>
|
|
||||||
nnoremap <silent> <Leader>/ :BLines<CR>
|
|
||||||
nnoremap <silent> <Leader>' :Marks<CR>
|
|
||||||
nnoremap <silent> <Leader>g :Commits<CR>
|
|
||||||
nnoremap <silent> <Leader>H :Helptags<CR>
|
|
||||||
nnoremap <silent> <Leader>hh :History<CR>
|
|
||||||
nnoremap <silent> <Leader>h: :History:<CR>
|
|
||||||
nnoremap <silent> <Leader>h/ :History/<CR>
|
|
||||||
" }
|
|
||||||
" }
|
" }
|
||||||
|
@ -66,13 +66,4 @@ alias g="git"
|
|||||||
alias mv="mv -i"
|
alias mv="mv -i"
|
||||||
alias rm="rm -i"
|
alias rm="rm -i"
|
||||||
|
|
||||||
# Colorize diff
|
|
||||||
alias diff="diff --color"
|
|
||||||
|
|
||||||
# Make fzf use ripgrep if available
|
|
||||||
if type rg &> /dev/null; then
|
|
||||||
export FZF_DEFAULT_COMMAND='rg --files'
|
|
||||||
export FZF_DEFAULT_OPTS='-m --height 50% --border'
|
|
||||||
fi
|
|
||||||
|
|
||||||
neofetch
|
neofetch
|
||||||
|
Loading…
Reference in New Issue
Block a user