zeertzjq and Doug Kearns
1ccbaa6c25
vim-patch:5ffb23c: runtime(rst): Update b:undo_ftplugin variable
...
The value of this variable is evaluated when the 'filetype' option is
changed and should be a command string that will undo any configuration
changes that the plugin has made.
See :help undo_indent for details
related: vim/vim#18566
https://github.com/vim/vim/commit/5ffb23c967189585b74bb9a031caf3b6ef7cce9c
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-10-14 10:44:47 +08:00
Yochem van Rosmalen
25322a3a3b
fix(help): only set url for help files in $VIMRUNTIME #36165
...
Problem:
Checking if the tag is nvim-owned (defined in a $VIMRUNTIME/doc/*.txt
file) is too expensive for now without non-obvious workarounds
Solution:
Only set url extmarks for $VIMRUNTIME/doc/*.txt files.
Closes : #36163
2025-10-13 11:08:37 -07:00
Yochem van Rosmalen
62d3a2110d
fix(help): wrong tag url in third-party help docs #36115
...
fix(help): only set url for nvim-owned tags
Problem:
1. gx on |nonexistingtag| opens
https://neovim.io/doc/user/helptag.html?nonexistingtag .
2. b:undo_ftplugin doesn't remove url extmarks.
Solution:
1. Check if the tag is defined in a help file in $VIMRUNTIME.
2. Solution: clear namespace for buffer in b:undo_ftplugin.
2025-10-12 15:08:18 -07:00
zeertzjq and Daumantas Kavolis
1c4e0e5044
vim-patch:cd6e209: runtime(kerml): update KerML comments to handle more cases ( #36060 )
...
closes : vim/vim#18502
https://github.com/vim/vim/commit/cd6e20965166b45d0f711289cd5252a545dd8a93
Co-authored-by: Daumantas Kavolis <daumantas.kavolis@sensmetry.com >
2025-10-06 23:53:47 +00:00
zeertzjq and Daumantas Kavolis
a4a8838178
vim-patch:9.1.1829: filetype: KerML and SysML files are not recognized ( #36042 )
...
Problem: filetype: KerML and SysML files are not recognized
Solution: Detect *.kerml as kerml filetype, detect *.sysml as sysml
filetype, include a kerml and sysml filetype plugin
(Daumantas Kavolis)
closes : vim/vim#18476
https://github.com/vim/vim/commit/b73ccf7ff0326ece9c942127c1965475ad71b78a
Co-authored-by: Daumantas Kavolis <daumantas.kavolis@sensmetry.com >
2025-10-06 06:07:41 +08:00
Evgeni Chasnovski
2728b4efe0
feat(pack): add [[ and ]] mappings in confirmation buffer
...
Problem: No easy/robust way to jump between plugin sections.
Solution: Add `[[` and `]]` mappings.
2025-10-05 19:20:05 +03:00
zeertzjq and Jan Claußen
2c76a50e20
vim-patch:9.1.1821: filetype: Not all PKL files are recognized ( #36008 )
...
Problem: filetype: Not all PKL files are recognized
Solution: Detect *.pcf as pkl filetype, detect using the pkl-lsp://
protocol as pkl filetype, include PKL syntax script
(Jan Claußen)
This adds basic syntax support for the new PKL language by Apple.
What works:
- Shebang support
- Comment support
- Integers (decimal, hex, octal and binary) support
- Floating point support including exponentials
- Basic datatype support
- Unicode escape delimiters
- Escape code support
- String interpolation
- Support up to five pounds for custom delimiters
- Folding of multi-line comments and blocks
What doesn't work:
The language heavily uses parameterized type declarations, which can get
very complex. It is very hard to highlight this properly. There is
official Tree-sitter support for this. Since it is hard to pull this off
in a vim syntax file, I opted for basic support of the data types.
References:
https://github.com/apple/pkl-pantry
fixes : vim/vim#18271
closes : vim/vim#18274
https://github.com/vim/vim/commit/67a8f2945e54def2a9a94aad919e4f489595acb7
Co-authored-by: Jan Claußen <jan.claussen10@web.de >
2025-10-04 06:01:16 +08:00
zeertzjq and Jon Parise
e7ff132708
vim-patch:9.1.1764: filetype: CODEOWNERS file not recognized ( #35789 )
...
Problem: filetype: CODEOWNERS file not recognized
Solution: Detect CODEOWNERS file as codeowners filetype, include a
syntax and filetype plugin (Jon Parise).
CODEOWNERS files define code ownership rules for GitHub-hosted (and
other) repositories. The syntax is similar to 'gitignore' files but
differs in enough ways to warrant its own filetype.
References:
- https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
closes : vim/vim#18299
https://github.com/vim/vim/commit/817e4d3ee6b051477596ba1d86a2631d9fabc95b
Co-authored-by: Jon Parise <jon@indelible.org >
2025-09-16 01:58:34 +00:00
Yochem van Rosmalen
47b0a718c3
feat(help): gx opens help tag in web browser #35778
...
Problem:
`gx` does not work on tags in help buffers to open the documentation of that tag in the browser.
Solution:
Get the `optionlink`, `taglink` and `tag` TS nodes and set extmark "url" property.
`gx` then discovers the extmark "url" and opens it.
2025-09-15 15:38:49 -07:00
zeertzjq and D. Ben Knoble
e2ab5e1db7
vim-patch:81ca991: runtime(html): guard against an existing b:undo_ftplugin var ( #35763 )
...
Filetype plugins should not assume they are the only file to execute on
behalf of a buffer's filetype: other filetypes may use them, and
dotted filetypes may cause multiple to run. When this occurs, they
should _build_ on their respective b:undo_ftplugin settings, not
overwrite each other.
For example, when using a dotted filetype wiki.markdown, the wiki
filetype plugins go first. Then, during the markdown filetype plugins,
the HTML plugin's unconditional assignment to b:undo_ftplugin trashes
any data previously stored there by the wiki filetype.
Follow the pattern elsewhere of assigning or appending conditionally.
closes : vim/vim#18267
https://github.com/vim/vim/commit/81ca9916d2fb2675a1a6da22fd68d26fb0ee8b8e
Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com >
2025-09-15 08:27:55 +08:00
zeertzjq and Luca Saccarola
c7a9404019
vim-patch:becf184: runtime(misc): removing saccarosium from maintainer list ( #35740 )
...
closes : vim/vim#17848
https://github.com/vim/vim/commit/becf1844e03462b2c997689caafc77bc9c812252
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com >
2025-09-13 01:18:18 +00:00
zeertzjq and Doug Kearns
91fa613fad
vim-patch:6505dc6: runtime(nu): Add new Nushell runtime files
...
See: https://github.com/elkasztano/nushell-syntax-vim
Thanks to Pete Cruz (@Petesta) for promoting this addition.
closes : vim/vim#18208
https://github.com/vim/vim/commit/6505dc69d3a663448045d653112aa52e74894327
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-07 21:22:12 +08:00
zeertzjq and Christian Brabandt
63b53c8d15
vim-patch:dfcd9ac: runtime(ada): mark as unmaintained, fix a few issues with the ftplugin
...
closes : vim/vim#18178
https://github.com/vim/vim/commit/dfcd9ac120fd40d7e869922cec0bb273e9bc154a
Co-authored-by: Christian Brabandt <cb@256bit.org >
2025-09-06 08:16:23 +08:00
zeertzjq and Christian Brabandt
26c9f31b91
vim-patch:f737ff8: runtime(hamster): do not globally set ignorecase
...
related: vim/vim#15772
https://github.com/vim/vim/commit/f737ff8c88b5fb77050ba44d986ee20d59ad37be
Co-authored-by: Christian Brabandt <cb@256bit.org >
2025-09-06 08:15:58 +08:00
zeertzjq
8a2587be23
Merge pull request #35546 from zeertzjq/vim-a07a2f4
...
vim-patch:a07a2f4: runtime(astro): catch json_decode() error when parsing tsconfig.json
2025-08-30 08:14:15 +08:00
zeertzjq and Radu Dineiu
53802da38b
vim-patch:f66674c: runtime(fstab): Added mtab support to fstab syntax.
...
closes : vim/vim#18074
https://github.com/vim/vim/commit/f66674cf429aa1fac79e522b45372d7e3d37a902
Co-authored-by: Radu Dineiu <radu.dineiu@gmail.com >
2025-08-24 20:08:15 +08:00
zeertzjq and Christian Brabandt
7e450aa383
vim-patch:b405c79: runtime(vim): set 'comments' based on script type (legacy/Vim9) ( #35359 )
...
fixes : vim/vim#18000
https://github.com/vim/vim/commit/b405c790046fc6758bf4a90feb6a67c2411685a0
Co-authored-by: Christian Brabandt <cb@256bit.org >
2025-08-17 01:26:37 +00:00
zeertzjq and D. Ben Knoble
d395dc9d38
vim-patch:7270a5a: runtime(racket): update Racket runtime files
...
This brings the upstream files to commit 9dc3bd3 (ftplugin: escape Vim
special characters when opening docs, 2025-08-09). Note that not all
upstream files are included.
closes : vim/vim#17956
https://github.com/vim/vim/commit/7270a5a8431e0209043f14dd3fa3ea479e4cddc6
Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com >
2025-08-11 07:00:28 +08:00
Phạm Bình An
69cc16d917
vim-patch:adfea9b: runtime(help): Unset 'comments' and 'cms' options ( #35232 )
...
Problem: Vim's help file doesn't have any syntax for comments, but
'comments' and 'commentstring' are still set in the help
buffer.
Solution: Unset 'comments' and 'cms' in help buffer
closes : vim/vim#17889
https://github.com/vim/vim/commit/adfea9b4e68f39744fcb6ce7840e1c3c3b4637db
2025-08-08 09:31:47 +00:00
Christian Clason and Squibid
d994be44d7
vim-patch:93f6454: runtime(openscad): add a filetype plugin
...
closes : vim/vim#17902
https://github.com/vim/vim/commit/93f6454724ba62035f7292e4ec62f1bc96a7dc46
Co-authored-by: Squibid <me@zacharyscheiman.com >
2025-08-07 17:16:22 +02:00
Evgeni Chasnovski
6e27200901
test(pack): add vim.pack tests
2025-08-02 15:00:42 +03:00
zeertzjq and phanium
1f7432a272
vim-patch:714671d: runtime(misc): use :hor :term to ensure new term window is split horizontally ( #35064 )
...
Problem: :term splits new window above in vim, but in nvim it change
the buffer for current window
Solution: :hor term to ensure consistent splitting for Vim and Neovim
closes : vim/vim#17822
https://github.com/vim/vim/commit/714671de3538266233d3411e0e375dba7d83005c
Co-authored-by: phanium <91544758+phanen@users.noreply.github.com >
2025-07-25 18:44:56 +08:00
Christian Clason and Riley Bruins
8dfad04ce9
vim-patch:a2578e0: runtime(uc): include uc filetype plugin
...
closes : vim/vim#17802
https://github.com/vim/vim/commit/a2578e08d53d72ab1943b760b0ac35cefb1fc132
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-07-20 13:27:55 +02:00
Christian Clason and Riley Bruins
8bccd07972
vim-patch:9.1.1549: filetype: pkl files are not recognized
...
Problem: filetype: pkl files are not recognized
Solution: detect *.pkl files as pkl filetype, include
a filetype plugin (Riley Bruins)
References:
https://pkl-lang.org/
https://github.com/apple/pkl
closes : vim/vim#17751
https://github.com/vim/vim/commit/d128889b306680338dbfb54ccc1ff32dc114165d
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-07-16 10:32:33 +02:00
Christian Clason and Riley Bruins
4195b82ec9
vim-patch:9.1.1548: filetype: OpenFGA files are not recognized
...
Problem: filetype: OpenFGA files are not recognized
Solution: detect *.fga files as fga filetype, include an fga filetype
plugin (Riley Bruins)
References:
https://github.com/openfga
https://marketplace.visualstudio.com/items?itemName=openfga.openfga-vscode
closes : vim/vim#17752
https://github.com/vim/vim/commit/0992f62fc18431296d3d5d6ab04317b8de4c76d9
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-07-16 10:32:33 +02:00
Christian Clason and Riley Bruins
fa648731ec
vim-patch:9a667b4: runtime(swig): add 'comments', 'commentstring' in filetype plugin
...
Reference:
https://www.swig.org/Doc1.3/SWIG.html#SWIG_nn5
closes : vim/vim#17753
https://github.com/vim/vim/commit/9a667b4dba09aee7968f33686afcac99dab347df
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-07-16 10:32:33 +02:00
Christian Clason and Riley Bruins
694f634556
vim-patch:30df425: runtime(twig): include twig filetype plugin
...
closes : vim/vim#17754
https://github.com/vim/vim/commit/30df42557cac48fe9337334f1c0479746a104076
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-07-16 10:32:33 +02:00
Phạm Bình An
9789a3b854
revert: "fix(runtime): set 'foldmethod' for Lua ftplugin #34929 " ( #34947 )
...
This reverts commit 12276832ab .
2025-07-16 06:15:16 +08:00
Phạm Bình An
12276832ab
fix(runtime): set 'foldmethod' for Lua ftplugin #34929
...
Problem:
Neovim's Lua ftplugin doesn't set `'foldmethod'`, though Vim one sets it https://github.com/vim/vim/blob/1341176e7b800238b30a137c1ea1a31ca2c3d488/runtime/ftplugin/lua.vim#L66-L68
Solution:
Set it
2025-07-14 05:28:30 -07:00
Christian Clason and Christian Brabandt
fccd016a0f
vim-patch:bda55df: Revert "runtime(haskell): Add single quote to iskeyword in ftplugin ( vim/vim#8191 )"
...
This reverts commit 5e6e4042b1c9685bce86493e3ee6fe916a7f221c.
related: vim/vim#8191
https://github.com/vim/vim/commit/bda55df3b8919c70c006f55b23d926555ad06088
Co-authored-by: Christian Brabandt <cb@256bit.org >
2025-07-10 09:29:15 +02:00
glepnir
28b7c2df52
fix(health): floating window closes when opening TOC (gO) #34794
...
Problem: Health check floating window gets closed when pressing 'gO' to show TOC because LSP floating preview system auto-closes on BufEnter events triggered by :lopen.
Solution: Temporarily disable BufEnter event for the current window during TOC operations and adjust window layout to prevent overlap.
2025-07-08 05:21:09 -07:00
Christian Clason and James McCoy
0d9bf5b89f
vim-patch:244198f: runtime(autopkgtest): add ftplugin file for autopkgtest
...
closes : vim/vim#17679
https://github.com/vim/vim/commit/244198f0396fe1d744a3accdb78af7948c8f5cbb
Co-authored-by: James McCoy <jamessan@jamessan.com >
2025-07-07 11:24:04 +02:00
Christian Clason and ichizok
887255362f
vim-patch:f9d87fa: runtime(go): fix b:undo_ftplugin
...
last `unmap` can cause the error "E31: No such mapping" when
`doaudocmd FileType go` if appending other commands to `b:undo_ftplugin` i.e.
the space and the next bar as `let b:undo_ftplugin .= ' | setl ...'`.
closes : vim/vim#17664
https://github.com/vim/vim/commit/f9d87fa6ba4b8026d089bf0fb755f6b0f7296408
Co-authored-by: ichizok <gclient.gaap@gmail.com >
2025-07-05 16:51:53 +02:00
Evgeni Chasnovski and Lewis Russell
d21b8c949a
feat(pack): add built-in plugin manager vim.pack
...
Problem: No built-in plugin manager
Solution: Add built-in plugin manager
Co-authored-by: Lewis Russell <lewis6991@gmail.com >
2025-07-04 15:56:28 +03:00
Christian Clason and Rob B
535e292436
vim-patch:5ecee30: runtime(go): add section movement mappings to ftplugin
...
closes : vim/vim#17641
https://github.com/vim/vim/commit/5ecee30dcdc1e8c731a69aa04729f07edd57fc27
Co-authored-by: Rob B <github@0x7e.net >
2025-07-03 00:28:39 +02:00
Christian Clason and Riley Bruins
487112d674
vim-patch:9.1.1468: filetype: bright(er)script files are not recognized
...
Problem: filetype: bright(er)script files are not recognized
Solution: detect *.bs files as brighterscript filetype and *.brs as
brightscript filetype, include filetype plugins (Riley Bruins)
closes : vim/vim#17566
https://github.com/vim/vim/commit/03e5ee25fdd4f8ee16b00688e24c4ad3b8f8f935
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-19 11:10:38 +02:00
Christian Clason and Riley Bruins
2379fb053a
vim-patch:8b92af6: runtime(hgcommit): set comments and commentstring options in filetype plugin
...
closes : vim/vim#17480
https://github.com/vim/vim/commit/8b92af645c18a5a1a9d493ef2ee89422b2923ca3
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-19 11:10:26 +02:00
Christian Clason and Riley Bruins
255f313cf6
vim-patch:736cd18: runtime(ishd): set comments and commentstring options in filetype plugin
...
closes : vim/vim#17490
https://github.com/vim/vim/commit/736cd18671895dc4875c4e00b19af417ec733087
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-19 11:10:26 +02:00
Christian Clason and jtmr05
f038213617
vim-patch:e4c157b: runtime(nroff,groff): update commentstyle in filetype plugins
...
closes : vim/vim#17516
https://github.com/vim/vim/commit/e4c157b9c1225a733a5ff73a5325a35996c07559
Co-authored-by: jtmr05 <62111562+jtmr05@users.noreply.github.com >
2025-06-19 11:10:26 +02:00
Christian Clason and Riley Bruins
1ede826e04
vim-patch:d296af9: runtime(masm): set 'com' and 'cms' options in ftplugin
...
closes : vim/vim#17484
https://github.com/vim/vim/commit/d296af94d0e2b2105e417441e8902d3c12380fe6
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-13 09:56:35 +02:00
Christian Clason and Riley Bruins
beee60f3a0
vim-patch:85f0711: runtime(zimbu): set 'commentstring' option in ftplugin
...
closes : vim/vim#17478
https://github.com/vim/vim/commit/85f0711b4eb2f4a27db4b9d8fc2588bfa3c81caf
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-13 09:56:35 +02:00
Christian Clason and Riley Bruins
719c7e2312
vim-patch:138fb95: runtime(reva): set 'cms' option in ftplugin, update URL
...
closes : vim/vim#17488
https://github.com/vim/vim/commit/138fb951e029f77cae2fa6ff1b6ecf9e0568adad
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-11 10:15:16 +02:00
Christian Clason and Riley Bruins
8cd0ef06bb
vim-patch:a0316cd: runtime(abap): set 'comments' and 'commentstring' option in ftplugin
...
Reference:
https://en.wikipedia.org/wiki/ABAP#Comments
closes : vim/vim#17489
https://github.com/vim/vim/commit/a0316cd29970fd940b089c037471604ece29125e
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-11 10:15:16 +02:00
b1aed2b40a
vim-patch:572d460: runtime(gdshader): add comments and commentstring to ftplugin
...
closes : vim/vim#17500
https://github.com/vim/vim/commit/572d46035f257a483b2ad53d2dbbb0967f515bcf
Co-authored-by: Maxim Kim <habamax@gmail.com >
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-11 10:15:16 +02:00
Christian Clason and Riley Bruins
93925fe020
vim-patch:446a98f: runtime(rpl): set commentstring option in ftplugin
...
closes : vim/vim#17487
https://github.com/vim/vim/commit/446a98f0b6a914d39773d4c6c4c8e08a55876d66
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-10 09:10:59 +02:00
Christian Clason and Riley Bruins
4387c26691
vim-patch:9e9fe66: runtime(postscr): set commentstring option in ftplugin
...
closes : vim/vim#17486
https://github.com/vim/vim/commit/9e9fe664371e8a8523ba30edb9c6f71610511acb
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-10 09:10:59 +02:00
Christian Clason and Riley Bruins
b7cb7fe51c
vim-patch:de535cf: runtime(occam): set commentstring option in ftplugin
...
closes : vim/vim#17485
https://github.com/vim/vim/commit/de535cfe77bf56c5f21acebfacbca2ea240cf190
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-10 09:10:59 +02:00
Christian Clason and Riley Bruins
5394320a67
vim-patch:df63097: runtime(lprolog): set com, cms options for lambda prolog
...
closes : vim/vim#17481
https://github.com/vim/vim/commit/df630970bfb91ee306178737ecea26f1fe42c6d1
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-10 09:10:59 +02:00
Christian Clason and Riley Bruins
2f167c53ac
vim-patch:aa9fc8e: runtime(vue): set 'com' and 'cms' options in ftplugin
...
closes : vim/vim#17479
https://github.com/vim/vim/commit/aa9fc8eb9474a853e03613f45fb90bda9264771c
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2025-06-10 09:10:59 +02:00
Christian Clason and Gregory Anders
aa9fd08034
vim-patch:c8b7e61: runtime: Add license information for HCL and Terraform runtime files
...
fixes : vim/vim#17372
closes : vim/vim#17377
https://github.com/vim/vim/commit/c8b7e6129a057fbcbff0d9e73dd8a476fd97a813
Co-authored-by: Gregory Anders <greg@gpanders.com >
2025-05-26 17:51:24 +02:00