-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugins.vim
executable file
·246 lines (189 loc) · 8.11 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
"
"=============================================================================
" File: plugins.vim
" Description: Defines plugins to be loaded after vimrc executes but before
" configure-plugins.vim.
" Author: Praful https://github.com/Praful/vim-config
" Licence: GPL v3
" Convention: Indented Plug statements denote dependency for previous unindented
" statment.
"
" The plugin manager has changed from using vundle to neobundle to dein and now
" vim-plug, which is simple and just works (so far!).
"=============================================================================
" automate installation of vimplug
"
" let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob($PK_VIMFILES . '/autoload/plug.vim'))
silent execute '!curl -fLo '.$PK_VIMFILES.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin($PK_VIMFILES.'/vimplug')
" Navigation ------------------------------------------------------
"
Plug 'Lokaltog/vim-easymotion'
" After install, turn shell ~/.vim/bundle/vimproc, (n,g)make -f your_machines_makefile
" Plug 'Shougo/vimproc', {'do': 'make'}
Plug 'xolox/vim-easytags'
"required by vim-session
Plug 'xolox/vim-misc'
Plug 'xolox/vim-shell'
" This has to be installed manually. See
" http://vim-taglist.sourceforge.net/installation.html
" Plug 'taglist.vim'
"
" Use BD, BU, BW to remove buffer without closing window
Plug 'qpkorr/vim-bufkill'
" makes textboxes in firefoxa and chrome run nvim;
" load for nvim only since it doesn't work with vim
" See https://github.com/junegunn/vim-plug/wiki/tips
Plug 'glacambre/firenvim', has('nvim') ? { 'do': { _ -> firenvim#install(0) } } : {'on': []}
" UI Additions ------------------------------------------------------
Plug 'bling/vim-airline'
" Commands ------------------------------------------------------
" <leader>K to invoke
" Plug 'beloglazov/vim-online-thesaurus'
Plug 'ron89/thesaurus_query.vim'
" Plug 'rhysd/vim-grammarous'
" must set before calling plugin
" disable default mappings
let g:NERDCreateDefaultMappings = 0
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
Plug 'scrooloose/nerdcommenter'
Plug 'tpope/vim-surround'
" Plug 'tpope/vim-fugitive'
Plug 'sickill/vim-pasta'
" vim-speeddating: use CTRL-A/CTRL-X to increment dates, times etc
Plug 'tpope/vim-speeddating'
" Plug "atweiden/vim-dragvisuals")
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'pbogut/fzf-mru.vim'
" Bbye allows you to delete buffers (close files) without closing your windows or messing up your layout.
Plug 'moll/vim-bbye'
" don't need because viminfo seems to take care of it
" Plug 'xolox/vim-session'
" Plug 'xolox/vim-session', !has('nvim') ? { 'do': {} } : {'on': []}
"automatic closing of quotes, parentheses, etc
Plug 'Raimondi/delimitMate'
" General language plugins ------------------------------------------------------
" Like Github copilot
" Clear current suggestion C-]
" Next suggestion <M-]
" Previous suggestion <M-[
" Insert suggestion <Tab>
" Manually trigger suggestion <M-Bslash>
Plug 'Exafunction/codeium.vim', { 'branch': 'main' }
" Not fast enough yet (comment out for now)
" Setup:
" sudo docker run --entrypoint /opt/tabby/bin/tabby-cpu -it -p 8080:8080 -v $HOME/.tabby:/data tabbyml/tabby serve --model StarCoder-1B
" To stop server: sudo docker stop <container id> (use docker ps to find container id)
" Get token from http://localhost:8080/
" In ~/.tabby-client/agent/config.toml, add section [server] with token.
"
" Plug 'TabbyML/vim-tabby'
" Tabby plugin will not show inline completion automatically, you can trigger the completion manually by pressing <C-\>.
" let g:tabby_trigger_mode = 'manual'
" let g:tabby_keybinding_accept = '<C-F9>'
" let g:tabby_node_binary = '$HOME/.config/nvm/versions/node/v21.5.0/bin/node'
" Plug 'madox2/vim-ai'
" Plug 'sheerun/vim-polyglot'
Plug 'vim-autoformat/vim-autoformat'
Plug 'fladson/vim-kitty'
Plug 'tpope/vim-dispatch'
" Install nightly build, replace ./install.sh with install.cmd on windows
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" <leader>j - Norma/visual: go to any variable/class/constant/name/symbol
" <leader>ab - Normal mode: open previous opened file (after jump)
" <leader>al - Normal mode: open last closed search window again
" More help: https://github.com/pechorin/any-jump.vim
" Plug 'pechorin/any-jump.vim'
" Python ------------------------------------------------------
" this was temperamental; replace with vim-slime, which works in kitty
" Plug 'jupyter-vim/jupyter-vim'
" General language plugins ------------------------------------------------------
" sends selected text to terminal; doesn't need to be in any mode
Plug 'jpalardy/vim-slime'
" rainbow parentheses
Plug 'luochen1990/rainbow'
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
" colourises #123456 codes
Plug 'chrisbra/Colorizer'
" Ruby ------------------------------------------------------
Plug 'vim-ruby/vim-ruby', {'for': 'ruby'}
" Give text-objects ar and ir eg car to change all block, dir to delete inner block.
" See https://github.com/nelstrom/vim-textobj-rubyblock
Plug 'nelstrom/vim-textobj-rubyblock', {'for':'ruby'}
Plug 'lucapette/vim-ruby-doc', {'for':'ruby'}
"Run Ruby program
"<leader>r runs current file or selected lines - no need to save file.
Plug 'hlissner/vim-forrestgump', {'for':'ruby'}
" Ruby style checker
Plug 'ngmy/vim-rubocop', {'for':'ruby', 'on':'RuboCop'}
" Run ruby commands selectively
Plug 't9md/vim-ruby-xmpfilter', {'for':'ruby'}
" add "end" after typing "begin" in Ruby.
Plug 'vim-scripts/endwise.vim', {'for': 'ruby'}
"
" JavaScript ------------------------------------------------------
Plug 'pangloss/vim-javascript', {'for':'javascript'}
" Plug 'neoclide/vim-jsx-improve', {'for':'jsx'}
Plug 'leshill/vim-json', {'for':'json'}
" Plug 'w0rp/ale'
Plug 'leshill/vim-json', {'for':['javascript','json']}
Plug 'leafgarland/typescript-vim', {'for':'typescript'}
" HTML ------------------------------------------------------
" Plug 'nono/vim-handlebars', {'autoload':{'filetypes':['html', 'htm']}})
" use <c-y>comma to complete expression eg html:5<c-y>,
" Plug 'mattn/emmet-vim'
Plug 'othree/html5.vim', {'for':['html', 'htm']}
Plug 'vim-scripts/indenthtml.vim', {'for':['html', 'htm']}
Plug 'hail2u/vim-css3-syntax', {'for':['css','scss','sass']}
" Other Languages ------------------------------------------------------
"Plug 'msanders/cocoa.vim'
"Plug 'mutewinter/taskpaper.vim'
"Plug 'mutewinter/nginx.vim'
"Plug 'timcharper/textile.vim'
"Plug 'mutewinter/vim-css3-syntax'
"Plug 'acustodioo/vim-tmux'
"Plug 'mutewinter/vim-markdown'
"Plug 'groenewege/vim-less'
"Plug 'wavded/vim-stylus'
"Plug 'tpope/vim-cucumber'
Plug 'JuliaEditorSupport/julia-vim'
"PowerShell highlighting/help
" Plug 'PProvost/vim-ps1', {'for': 'powershell'}
" Plug 'romainl/vim-devdocs'
" japanese: enable using ctrl-J
" Plug 'tyru/eskk.vim'
" Matching ------------------------------------------------------
"
" See https://github.com/wellle/targets.vim
Plug 'wellle/targets.vim'
"https://github.com/andymass/vim-matchup#detailed-feature-documentation
Plug 'andymass/vim-matchup'
Plug 'kana/vim-textobj-user'
" Column text object eg
" vic Visually select a column.
" cic Change a column.
" dac Delete a column.
" vicI Prepend new text to a column.
" vicA Append new text to a column.
" viC Visually select a WORD based colunn.
" Plug 'coderifous/textobj-word-column.vim'
" <count>ai An Indentation level and line above. eg 2vai
" <count>ii Inner Indentation level (no line above).
" <count>aI An Indentation level and lines above/below.
" eg >ii indents current level; vii selects current level;
" >ai indents currrent level and line and above.
Plug 'michaeljsmith/vim-indent-object'
" Plug 'nelstrom/vim-visual-star-search', {'for': 'ruby'}
Plug 'tpope/vim-unimpaired'
" search/replace highlighting
Plug 'markonm/traces.vim'
" Libraries ------------------------------------------------------
Plug 'vim-scripts/L9'
Plug 'tpope/vim-repeat'
" Plug 'mattn/webapi-vim'
call plug#end()