-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugins.vim
More file actions
284 lines (218 loc) · 8.7 KB
/
Copy pathplugins.vim
File metadata and controls
284 lines (218 loc) · 8.7 KB
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin(stdpath('data') . '/plugged')
" Disabled outright — superseded by a dedicated, Vim-compatible plugin/port,
" not treesitter, so this holds under plain Vim too:
" - verilog/systemverilog: vhda/verilog_systemverilog.vim, already the sole
" active provider via the filetype override in
" plugconf/verilog_systemverilog.vim — this is defense in depth.
" - xdc: ported into after/syntax/xdc.vim.
" - openscad: vim-openscad already wins precedence today (loads first, and
" unlike polyglot's systemverilog/jinja2 files it doesn't force-override);
" this just stops the dead copy from being sourced at all.
" - ansible: polyglot's internal disable-key for syntax/jinja2.vim (oddly
" filed under 'ansible', not 'jinja2' — checked the is_disabled() call
" site directly). Also gates polyglot's actual Ansible playbook/inventory
" support, unused in this repo. Superseded by Glench/Vim-Jinja2-Syntax.
let g:polyglot_disabled = ['verilog', 'systemverilog', 'xdc', 'openscad', 'ansible']
if has('nvim')
" Only meaningful with treesitter actually installed to replace polyglot's
" coverage; plain Vim has no treesitter, so polyglot stays authoritative
" there for all of these.
call extend(g:polyglot_disabled,
\ ['python', 'markdown', 'yaml', 'json', 'json5', 'jsonc', 'vhdl',
\ 'c/c++', 'cpp-modern', 'rust'])
" vhdl's indent (GetVHDLindent(), plugconf/vhdl.vim) and folding
" (VhdlFoldExpr) stay unaffected: GetVHDLindent() turns out to be a shared
" upstream community script (Gerald Lai, vim.org #1450) that Neovim's own
" bundled runtime/indent/vhdl.vim provides too, near-byte-identical to
" polyglot's copy — so disabling polyglot's vhdl module here just falls
" back to Neovim's own copy of the same function, and VhdlFoldExpr is
" untouched either way. Highlighting moves to treesitter (already
" installed, see plugconf/treesitter.lua).
" c/c++: unlike vhdl, polyglot's copy is not a near-identical rename —
" it's a vendored snapshot dated 2021-05-24 (checked the file header
" directly), while Neovim's own bundled syntax/c.vim is dated
" 2025-01-18 and currently loses precedence to it (confirmed via
" :scriptnames on a real .c buffer: polyglot's copy loads first, sets
" b:current_syntax, and Neovim's own guard then no-ops). Disabling
" polyglot's c/c++ and cpp-modern modules here restores Neovim's newer
" copy as the has('nvim') fallback and lets treesitter take over
" highlighting outright (see plugconf/treesitter.lua). c has no
" indent-file conflict to begin with — only Neovim's own indent/c.vim
" (cindent-based) is on the runtimepath at all, so it's left untouched.
" rust: single disable-key 'rust' covers polyglot's ftplugin/indent/
" syntax/after-syntax/tagbar files together. Confirmed via header dates:
" polyglot's copies are 2016-06-08/2018-01-10/2016-02-24; Neovim's own
" bundled copies (same upstream, rust-lang/rust.vim) are
" 2024-03-17/2024-07-04/2023-09-11 — 6-8 years newer, and currently
" lose precedence to polyglot's stale copies the same way c/c++ did.
" Indent additionally moves off the built-in entirely, onto treesitter's
" indentexpr (ftype-settings.vim) — unlike cindent, Neovim's own
" indent/rust.vim carries its own comment flagging upstream rust.vim as
" unmaintained, so there's no mature-indent argument to preserve it.
endif
" Themes
Plug 'https://github.com/rafi/awesome-vim-colorschemes.git'
Plug 'sainnhe/everforest'
Plug 'AlexvZyl/nordic.nvim', { 'branch': 'main' }
Plug 'RRethy/base16-nvim'
Plug 'savq/melange-nvim'
Plug 'rebelot/kanagawa.nvim'
Plug 'sainnhe/gruvbox-material'
Plug 'tanvirtin/monokai.nvim'
Plug 'sainnhe/sonokai'
" Better Comments
Plug 'tpope/vim-commentary'
" Better Join command
Plug 'sk1418/Join'
" Surround
Plug 'tpope/vim-surround'
" Change dates fast
Plug 'tpope/vim-speeddating'
" Change case to title case
Plug 'christoomey/vim-titlecase'
" Convert binary, hex, etc..
Plug 'glts/vim-magnum'
Plug 'glts/vim-radical'
" Repeat stuff
Plug 'tpope/vim-repeat'
" Better highlighting matching text
Plug 'andymass/vim-matchup'
" Highlight just yanked text
Plug 'machakann/vim-highlightedyank'
" Jinja2 templates (only dialect in use here — no plain Jinja/Nunjucks)
Plug 'Glench/Vim-Jinja2-Syntax'
" LaTeX support
Plug 'lervag/vimtex'
" Useful pair mappings (like moving lines, jumping, etc.)
" Plug 'tpope/vim-unimpaired'
if has('nvim')
" Fuzzy finding, grepping and exploring
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' }
Plug 'nvim-telescope/telescope-file-browser.nvim'
" Markdown heading numbering
Plug 'whitestarrain/md-section-number.nvim'
" Syntax-tree-based highlighting/folding
" master, not main: main requires vim.list, not present until after Nvim 0.11
Plug 'nvim-treesitter/nvim-treesitter', { 'branch': 'master', 'do': ':TSUpdate' }
endif
" NERDTree
Plug 'preservim/nerdtree' |
\ Plug 'Xuyuanp/nerdtree-git-plugin'
" Tag generation
Plug 'https://github.com/ludovicchabant/vim-gutentags'
" Snippet and completion plugin
" Plug 'L3MON4D3/LuaSnip', {'tag': 'v2.*', 'do': 'make install_jsregexp'}
" exec 'source ' . stdpath('config') . '/plugconf/luasnip.lua'
if has('python3')
Plug 'SirVer/ultisnips', { 'branch': 'master' }
Plug 'honza/vim-snippets'
exec 'source ' . stdpath('config') . '/plugconf/ultisnips.vim'
Plug 'https://github.com/ycm-core/YouCompleteMe', { 'do': 'python3 install.py --clangd-completer --rust-completer' }
exec 'source ' . stdpath('config') . '/plugconf/ycm.vim'
" Plug 'https://github.com/davidhalter/jedi-vim'
" exec 'source ' . stdpath('config') . '/plugconf/jedi-vim.vim'
Plug 'pixelneo/vim-python-docstring'
exec 'source ' . stdpath('config') . '/plugconf/vim-python-docstring.vim'
endif
" Text Navigation
Plug 'unblevable/quick-scope'
" OpenSCAD
Plug 'sirtaj/vim-openscad'
" NeoVim in Firefox
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
" Easymotion
Plug 'easymotion/vim-easymotion'
exec 'source ' . stdpath('config') . '/plugconf/easymotion.vim'
" Have the file system follow you around
Plug 'airblade/vim-rooter'
" Better Syntax Support
Plug 'sheerun/vim-polyglot'
" Different language formatter support
Plug 'vim-autoformat/vim-autoformat'
" Auto pairs for '(' '[' '{'
Plug 'cohama/lexima.vim'
" Closetags
Plug 'alvan/vim-closetag'
" Status Line
"Plug 'glepnir/galaxyline.nvim'
" Git
Plug 'airblade/vim-gitgutter'
Plug 'https://github.com/tpope/vim-fugitive.git'
Plug 'junegunn/gv.vim'
Plug 'rhysd/git-messenger.vim'
" Easy aligning
Plug 'junegunn/vim-easy-align'
" See what keys do like in emacs
"Plug 'liuchengxu/vim-which-key'
" Zen mode
" Plug 'junegunn/goyo.vim'
" undo time travel
Plug 'mbbill/undotree'
" Find and replace
Plug 'https://github.com/brooth/far.vim'
" Swap windows
Plug 'wesQ3/vim-windowswap'
" Intuitive buffer closing
Plug 'moll/vim-bbye'
" Verilog/SystemVerilog
Plug 'vhda/verilog_systemverilog.vim'
" Markdown Preview
" NN in the pure editor
"Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & npm install' }
" Markdown ToC
Plug 'mzlogin/vim-markdown-toc'
" Colorscheme switcher
Plug 'https://github.com/xolox/vim-misc.git'
Plug 'https://github.com/xolox/vim-colorscheme-switcher.git'
" Text Navigation
Plug 'unblevable/quick-scope'
" NeoVim in Firefox
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
" Easymotion
Plug 'easymotion/vim-easymotion'
exec 'source ' . stdpath('config') . '/plugconf/easymotion.vim'
" Have the file system follow you around
Plug 'airblade/vim-rooter'
" Better Syntax Support
Plug 'sheerun/vim-polyglot'
" Different language formatter support
Plug 'vim-autoformat/vim-autoformat'
" Auto pairs for '(' '[' '{'
Plug 'cohama/lexima.vim'
" Closetags
Plug 'alvan/vim-closetag'
" Status Line
"Plug 'glepnir/galaxyline.nvim'
" Git
Plug 'airblade/vim-gitgutter'
Plug 'https://github.com/tpope/vim-fugitive.git'
Plug 'junegunn/gv.vim'
Plug 'rhysd/git-messenger.vim'
" See what keys do like in emacs
"Plug 'liuchengxu/vim-which-key'
" Zen mode
" Plug 'junegunn/goyo.vim'
" undo time travel
Plug 'mbbill/undotree'
" Find and replace
Plug 'https://github.com/brooth/far.vim'
" Swap windows
Plug 'wesQ3/vim-windowswap'
" Intuitive buffer closing
Plug 'moll/vim-bbye'
" Verilog/SystemVerilog
Plug 'vhda/verilog_systemverilog.vim'
" Markdown Preview
" NN in the pure editor
"Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & npm install' }
call plug#end()
" Automatically install missing plugins on startup
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif