-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.vim
120 lines (118 loc) · 4.58 KB
/
plugins.vim
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
" Install vim-plug if not found
let uname = substitute(system('uname'),'\n','','')
if uname == 'Linux'
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
else
if empty(glob('~/AppData/Local/nvim/autoload/plug.vim'))
execute 'silent !curl -fLo' shellescape("%HOMEDRIVE%%HOMEPATH%/AppData/Local/nvim/autoload/plug.vim", 1) '--create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
endif
endif
" Automatically install missing plugins on startup
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif
call plug#begin()
" Plugins {{{
Plug 'dense-analysis/ale'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'jiangmiao/auto-pairs'
Plug 'MattesGroeger/vim-bookmarks' " bookmark (mm) / annotate (mi)
Plug 't9md/vim-choosewin'
Plug 'alvan/vim-closetag'
Plug 'hrsh7th/nvim-cmp' " For LSP completion
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'Exafunction/codeium.vim'
Plug 'norcalli/nvim-colorizer.lua'
Plug 'chrisbra/csv.vim'
Plug 'tpope/vim-commentary' " line (gcc) / motion (gc)
Plug 'voldikss/vim-floaterm'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'yuki-ycino/fzf-preview.vim'
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-fugitive'
Plug 'junegunn/goyo.vim'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'davidhalter/jedi-vim'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'LnL7/vim-nix'
Plug 'joshdick/onedark.vim'
Plug 'sheerun/vim-polyglot'
Plug 'luochen1990/rainbow'
Plug 'mhinz/vim-signify'
Plug 'psliwka/vim-smoothie'
Plug 'justinmk/vim-sneak'
Plug 'honza/vim-snippets'
Plug 'mhinz/vim-startify'
Plug 'tpope/vim-surround' " change (cd)/ delete (ds) / add (ys)/ visual (S)
Plug 'godlygeek/tabular'
Plug 'mbbill/undotree'
Plug 'mg979/vim-visual-multi', {'branch': 'master'}
Plug 'cj/vim-webdevicons'
Plug 'liuchengxu/vim-which-key'
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.2' }
" Plug 'whonore/Coqtail'
" Plug 'Julian/lean.nvim'
" Plug 'elixir-lang/vim-elixir'
" Plug 'rust-lang/rust.vim'
" Plug 'simrat39/rust-tools.nvim'
" Plug 'saecki/crates.nvim', { 'tag': 'v0.3.0' }
" }}}
call plug#end()
" Airline Settings {{{
let g:airline_powerline_fonts = 1
" }}}
" ChooseWin Settings {{{
let g:choosewin_overlay_enable = 1
" }}}
" Colorizer Settings {{{
if exists("loaded_colorizer")
lua require'colorizer'.setup()
endif
" }}}
" Floaterm Settings {{{
let g:floaterm_title = ''
let g:floaterm_gitcommit = 'floaterm'
let g:floaterm_autoinsert = 1
let g:floaterm_width = 0.8
let g:floaterm_height = 0.8
let g:floaterm_wintitle = 0
let g:floaterm_autoclose = 1
" }}}
" Indent-guides Settings {{{
let g:indent_guides_guide_size = 1
" }}}
" Rainbow Settings {{{
let g:rainbow_active = 1
" }}}
" Sneak Settings {{{
let g:sneak#label = 1
let g:sneak#use_ic_scs = 1 " case insensitive sneak
let g:sneak#s_next = 1
highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan
highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow
let g:sneak#prompt = '🔎 '
" }}}
" Startify Settings {{{
let s:startify_ascii_header = [
\ '███╗░░██╗███████╗░█████╗░██╗░░░██╗██╗███╗░░░███╗',
\ '████╗░██║██╔════╝██╔══██╗██║░░░██║██║████╗░████║',
\ '██╔██╗██║█████╗░░██║░░██║╚██╗░██╔╝██║██╔████╔██║',
\ '██║╚████║██╔══╝░░██║░░██║░╚████╔╝░██║██║╚██╔╝██║',
\ '██║░╚███║███████╗╚█████╔╝░░╚██╔╝░░██║██║░╚═╝░██║',
\ '',
\]
let g:startify_custom_header = map(s:startify_ascii_header + startify#fortune#quote(), '" ".v:val')
let g:webdevicons_enable_startify = 1
function! StartifyEntryFormat()
return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path'
endfunction
" }}}