1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

..

4 Commits

Author SHA1 Message Date
Ryan Kes
6bbc48de9a removed newline 2020-08-18 15:45:34 +02:00
Ryan Kes
d7976d4978 use fzf in vim & make sure fzf uses ripgrep 2020-08-18 15:42:11 +02:00
Ryan Kes
76a4c76b05 added vim-closetag 2020-08-18 15:10:20 +02:00
Ryan Kes
8e5be79868 replaced vim-sneak with vim-easymotion 2020-08-18 15:04:27 +02:00
5 changed files with 53 additions and 6 deletions

View File

@ -75,6 +75,7 @@ A repository of my personal configuration files.
- [[https://github.com/GeorgeFilipkin/pulsemixer][pulsemixer]]
- [[https://www.python.org/][Python]]
- [[https://github.com/dylanaraps/pywal][pywal]]
- [[https://github.com/BurntSushi/ripgrep][ripgrep]]
- [[https://github.com/Spotifyd/spotifyd][Spotifyd]]
- [[http://www.gnu.org/software/stow/][stow]]
- [[https://github.com/muennich/sxiv][sxiv]]
@ -160,9 +161,9 @@ A repository of my personal configuration files.
*** General
- [[https://github.com/bling/vim-bufferline][bling/vim-bufferline]]
- [[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/junegunn/fzf][ junegunn/fzf]]
- [[https://github.com/justinmk/vim-sneak][justinmk/vim-sneak]]
- [[https://github.com/junegunn/fzf.vim][junegunn/fzf.vim]]
- [[https://github.com/mbbill/undotree][mbbill/undotree]]
- [[https://github.com/mhinz/vim-signify][mhinz/vim-signify]]
- [[https://github.com/myusuf3/numbers.vim][myusuf3/numbers.vim]]
@ -174,6 +175,7 @@ A repository of my personal configuration files.
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
*** Programming
- [[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/godlygeek/tabular][godlygeek/tabular]]
- [[https://github.com/neoclide/coc.nvim][neoclice/coc.nvim]]

View File

@ -312,3 +312,9 @@ if set -q FZF_COMPLETE
bind -M insert \t '__fzf_complete'
end
end
# Make fzf use ripgrep if available
if type rg &> /dev/null
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_DEFAULT_OPTS='-m --height 50% --border'
end

View File

@ -1,7 +1,7 @@
#!/usr/bin/env fish
# Prerequisite & inistalled apps
set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf graphviz isync imagemagick lightdm-gtk-greeter mailcap deadd-notification-center-bin neofetch npm pandoc-bin pamixer playerctl pulseaudio pulsemixer python pywal stow sxiv tldr trayer udisks2 xwallpaper yarn xprop zathura
set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf graphviz isync imagemagick lightdm-gtk-greeter mailcap deadd-notification-center-bin neofetch npm pandoc-bin pamixer playerctl pulseaudio pulsemixer python pywal ripgrep stow sxiv tldr trayer udisks2 xwallpaper yarn xprop zathura
set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont
set prerequisiteLibraries python-panflute
set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server-bin vscode-css-languageserver-bin vscode-html-languageserver-bin nodejs-intelephense

View File

@ -17,10 +17,9 @@
Plug 'unblevable/quick-scope'
" }
Plug 'bling/vim-bufferline'
Plug 'easymotion/vim-easymotion'
Plug 'farmergreg/vim-lastplace'
Plug 'junegunn/fzf'
Plug 'justinmk/vim-sneak'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'junegunn/fzf.vim'
Plug 'mbbill/undotree'
Plug 'mhinz/vim-signify'
Plug 'myusuf3/numbers.vim'
@ -34,6 +33,7 @@
" Programming {
Plug 'airblade/vim-gitgutter'
Plug 'alvan/vim-closetag'
Plug 'dense-analysis/ale'
Plug 'godlygeek/tabular'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
@ -195,4 +195,37 @@
" Fix files automatically on save
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>
" }
" }

View File

@ -240,3 +240,9 @@ vterm_prompt_end() {
printf "\e]51;A$(whoami)@$(hostname):$(pwd)\e\\"
}
PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'
# 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