-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimplugs
72 lines (58 loc) · 2.22 KB
/
.vimplugs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
" Plugins
packadd minpac
call minpac#init()
" aliases
command! PackUpdate call minpac#update()
command! PackClean call minpac#clean()
" packages
call minpac#add('k-takata/minpac', {'type': 'opt'})
call minpac#add('tpope/vim-surround')
call minpac#add('justinmk/vim-sneak')
call minpac#add('tpope/vim-commentary')
call minpac#add('tpope/vim-fugitive')
call minpac#add('christoomey/vim-tmux-navigator')
call minpac#add('sainnhe/everforest')
call minpac#add('mhinz/vim-startify')
call minpac#add('vim-airline/vim-airline')
call minpac#add('preservim/nerdtree')
call minpac#add('bling/vim-bufferline')
call minpac#add('catppuccin/vim', {'as': 'catppuccin'})
call minpac#add('unblevable/quick-scope')
" Automatically install plugins if they don't exist
if empty(glob(expand("~/.vim/pack/minpac/start") . '/*'))
autocmd VimEnter * PackUpdate
endif
" Plugin Configs
if has('termguicolors')
set termguicolors
endif
let g:everforest_enable_italic = 1
let g:everforest_background = 'hard'
set background=dark
" let g:everforest_better_performance = 1
let NERDTreeShowHidden=1
" Toggle nerdtree with Ctrl+B
nnoremap <silent> <leader>e :NERDTreeToggle<CR>
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" Close the tab if NERDTree is the only window remaining in it.
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
let g:bufferline_echo = 0
" For alacritty
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
colorscheme catppuccin_mocha
" Few terminals can't show error highlighting in coc
highlight ErrorText cterm=underline
" Sneak labels
let g:sneak#label = 1
let g:sneak#use_ic_scs = 1
" define maps for sneak repeats to free up ; or , for f and t
nnoremap \; <Plug>Sneak_;
nnoremap \, <Plug>Sneak_,
" quick-scope
" Trigger a highlight in the appropriate direction when pressing these keys:
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
highlight QuickScopePrimary guifg='#afff5f' gui=underline ctermfg=155 cterm=underline
highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline
" vim: ft=vim