Riley Bruins
1f2f460b4a
fix(lsp): don't show codelens for buffers that don't support it ( #29690 )
2024-07-16 19:48:54 +02:00
Maria José Solano
5fe4ce6678
fix(snippet): modify base indentation when there's actually whitespace ( #29670 )
2024-07-16 19:30:22 +02:00
altermo
118ae7e5ed
fix(tohtml): support ranges again
2024-07-16 15:07:40 +02:00
Christian Clason and Gregory Anders
a0fd51c1e2
vim-patch:1cc4cae: runtime(typst): Add typst runtime files
...
closes : vim/vim#15234
https://github.com/vim/vim/commit/1cc4cae961a7b49608ef7bd56837cc723d49db4d
Co-authored-by: Gregory Anders <greg@gpanders.com >
2024-07-16 09:43:57 +02:00
altermo
25db0a1385
fix(tohtml): extmark text may be out of bounds
2024-07-16 08:11:26 +01:00
zeertzjq and Dominique Pellé
c2b51e6c41
vim-patch:df62c62: runtime(doc): grammar fixes in options.txt ( #29729 )
...
closes : vim/vim#15265
https://github.com/vim/vim/commit/df62c62177bd4dffce880b7a5711594865090953
Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com >
2024-07-15 22:24:02 +00:00
Maria José Solano
8703e7bd12
docs(lpeg): merge upstream changes
2024-07-15 21:16:29 +01:00
04c158fbec
docs: misc ( #29622 )
...
Co-authored-by: Christian Clason <c.clason@uni-graz.at >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2024-07-15 06:54:45 +08:00
Christian Clason and Yinzuo Jiang
79130c0fd3
vim-patch:9.1.0586: ocaml runtime files are outdated
...
Problem: ocaml runtime files are outdated
Solution: sync those files with the upstream repo,
detect a few more ocaml files
(Yinzuo Jiang)
closes : vim/vim#15260
https://github.com/vim/vim/commit/700cf8cfa1e926e2ba676203b3ad90c2c2083f1d
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com >
2024-07-14 23:55:57 +02:00
Christian Clason and Jonas Dujava
60734dc761
vim-patch:9.1.0583: filetype: *.pdf_tex files are not recognized
...
Problem: filetype: *.pdf_tex files are not recognized
Solution: Detect '*.pdf_tex' files as tex filetype
(Jonas Dujava)
Those files are generated by inkscape, when exporting, see e.g.
https://inkscape.org/doc/inkscape-man.html
closes : vim/vim#15250
https://github.com/vim/vim/commit/28145e005d646cb0477aa26ef69d0f651a9f9d27
Co-authored-by: Jonas Dujava <jonas.dujava@gmail.com >
2024-07-14 12:21:11 +02:00
zeertzjq and Christian Brabandt
8b7c8a0994
vim-patch:27c5598: runtime(doc): Add hint how to load termdebug from vimrc ( #29704 )
...
fixes : vim/vim#15256
https://github.com/vim/vim/commit/27c55984def4c6ff7afc89958c90f6018c474b2c
Co-authored-by: Christian Brabandt <cb@256bit.org >
2024-07-14 18:15:50 +08:00
zeertzjq and Mohamed Akram
ba36742211
vim-patch:9.1.0574: ex: wrong handling of commands after bar
...
Problem: ex: wrong handling of commands after bar
Solution: for :append, :insert and :change use the text after the bar
as input for those commands. This is what POSIX requests.
(Mohamed Akram)
See the POSIX Spec:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html#tag_20_40_13_03
Section 12.c
closes : vim/vim#15229
https://github.com/vim/vim/commit/8c446da34998f6350911e07fbfd7932412c83185
Co-authored-by: Mohamed Akram <mohd.akram@outlook.com >
2024-07-14 13:39:40 +08:00
zeertzjq and Mohamed Akram
9093fbdd02
vim-patch:9.1.0573: ex: no implicit print for single addresses
...
Problem: ex: no implicit print for single addresses
Solution: explicitly print even during single addresses,
as requested by POSIX (Mohamed Akram)
See the POSIX behaviour here:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html#tag_20_40_13_03
Section 6b
closes : vim/vim#15230
https://github.com/vim/vim/commit/c25a7084e9ae1f78c28ddcbe1fa23374cfdf1e03
Co-authored-by: Mohamed Akram <mohd.akram@outlook.com >
2024-07-14 13:39:40 +08:00
bfredl
2ad8428637
Merge pull request #29659 from amitds1997/fix/empty-dict-encoding
...
fix(lua)!: do not use typed table for empty dict
2024-07-13 14:55:35 +02:00
Amit Singh
970a27927e
fix(lua)!: do not use typed table for empty dict
...
Problem:
Empty dictionaries are converted into typed tables of the form `{ [true]
= 6}` instead of an empty dictionary representation `{}`. This leads to
incorrect table representation, along with failure in JSON encoding of
such tables as currently tables with only string and number type keys
can be encoded.
Solution:
The typed table logic has been removed from `nlua_push_Dictionary`. The
typed table logic is required only for float value conversions which is
already handled in `nlua_push_Float`. So, it is(was) no longer required
here.
Fixes neovim/neovim#29218
2024-07-13 16:42:28 +05:30
Lewis Russell
b0f39f3ef5
Merge pull request #29632 from echasnovski/filetype-refactor
...
refactor(filetype): extract some functions, use more cache
2024-07-13 08:27:47 +01:00
zeertzjq and LemonBoy
b1aa8f5eb8
vim-patch:9.1.0572: cannot specify tab page closing behaviour ( #29682 )
...
Problem: cannot specify tab page closing behaviour
(Gianluca Pacchiella)
Solution: Add the 'tabclose' option (LemonBoy).
fixes : vim/vim#5967
closes : vim/vim#15204
https://github.com/vim/vim/commit/5247b0b92e191a046b034171a3b34031e317735f
Co-authored-by: LemonBoy <thatlemon@gmail.com >
2024-07-13 08:56:58 +08:00
zeertzjq and Mohamed Akram
10256bb760
vim-patch:74703f1: runtime(doc): remove obsolete Ex insert behavior ( #29678 )
...
related: vim/vim#15120
closes : vim/vim#15228
https://github.com/vim/vim/commit/74703f1086e7815f356123736666d9930db8683a
Nvim only supports Vim Ex mode, so this is long obsolete in Nvim.
Co-authored-by: Mohamed Akram <mohd.akram@outlook.com >
2024-07-13 04:38:37 +08:00
Evgeni Chasnovski
708b5f86ba
refactor(filetype): use Lua patterns without implicit anchoring
2024-07-12 21:16:09 +03:00
Evgeni Chasnovski
9d14b76089
refactor(filetype): extract expanding env. vars in separate function
2024-07-12 21:16:09 +03:00
Evgeni Chasnovski
abf4b65a51
perf(filetype): cache (more) pattern data during "add" time
2024-07-12 21:16:09 +03:00
Evgeni Chasnovski
c7e8fc6302
refactor(filetype): unify matching patterns with pos/neg priority
...
Problem: due to single list of sorted patterns, their matching inside
`vim.filetype.match()` was done very similarly but with extra checks
to stop processing negative priority patterns before extensions.
Solution: create separated sorted lists for patterns with non-negative
and negative priorities. This allows to process them in a single
extracted function making the main codeflow a bit nicer and more
easily expandable.
2024-07-12 21:16:09 +03:00
Christian Clason and Eisuke Kawashima
8d8b8af2d2
vim-patch:57f7d75: runtime(logindefs): update syntax with new keywords
...
* add keywords
* enforce octal format for permissions
closes : vim/vim#15222
https://github.com/vim/vim/commit/57f7d75591da0ec91068741eefbad295be8f78b4
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com >
2024-07-12 11:41:51 +02:00
Christian Clason and Riley Bruins
26d5253805
vim-patch:fc533c9: runtime(mojo): include mojo ftplugin and indent script
...
Taken from excerpts of the Python ftplugin and adapted,
indent script simply sources the python indent script.
closes : vim/vim#15171
https://github.com/vim/vim/commit/fc533c9f06aff579437f9f2348a21241a72c7967
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-12 11:34:11 +02:00
Christian Clason and Christian Brabandt
f4beab7ad8
vim-patch:7a22cb8: runtime(fstab): Add missing keywords to fstab syntax
...
Added overlay, tracefs and fixed the "none" keyword in the fstab syntax definition.
closes : vim/vim#15217
https://github.com/vim/vim/commit/7a22cb81415060215d28c1601a0b35755449bf87
Co-authored-by: Christian Brabandt <cb@256bit.org >
2024-07-12 11:34:00 +02:00
zeertzjq and LemonBoy
83f42aa450
vim-patch:9.1.0568: Cannot expand paths from 'cdpath' setting
...
Problem: Cannot expand paths from 'cdpath' setting
(Daniel Hahler)
Solution: Implement 'cdpath' completion, add the new 'dir_in_path'
completion type (LemonBoy)
fixes vim/vim#374
closes : vim/vim#15205
https://github.com/vim/vim/commit/a20bf69a3b32024cb7809be87af33bf9dc490a19
Co-authored-by: LemonBoy <thatlemon@gmail.com >
2024-07-12 07:39:36 +08:00
zeertzjq and LemonBoy
45b7a2c503
vim-patch:9.1.0557: moving in the buffer list doesn't work as documented ( #29653 )
...
Problem: moving in the buffer list doesn't work as documented
(SenileFelineS)
Solution: Skip non-help buffers, when run from normal buffers, else
only move from help buffers to the next help buffer (LemonBoy)
As explained in the help section for :bnext and :bprev the commands
should jump from help buffers to help buffers (and from regular ones to
regular ones).
fixes : vim/vim#4478
closes : vim/vim#15198
https://github.com/vim/vim/commit/893eeeb44583ca33276e263165b2a6e50fd297d0
Co-authored-by: LemonBoy <thatlemon@gmail.com >
2024-07-11 08:02:59 +08:00
Christian Clason and Christian Brabandt
afbe7736a4
vim-patch:9.1.0555: filetype: angular ft detection is still problematic
...
Problem: filetype: angular ft detection is still problematic
(after 9.1.0551)
Solution: detect htmlangular filetype only by inspecting the content,
do not try to determine it from a generic name like
'*.component.html'
For the reasons mentioned here:
https://github.com/vim/vim/pull/13594#issuecomment-1834465890
related: vim/vim#15190
related: vim/vim#13594
related: vim/vim#13604
https://github.com/vim/vim/commit/c03f631b7b01e672787b222a55898f8dcac8d859
Co-authored-by: Christian Brabandt <cb@256bit.org >
2024-07-11 00:41:40 +02:00
Christian Clason and Christian Brabandt
f24dd5481b
vim-patch:a3a14d5: runtime(htmlangular): correct comment
...
related: vim/vim#15190
https://github.com/vim/vim/commit/a3a14d5469681676310d39c19e110a57cd8ac7c6
Co-authored-by: Christian Brabandt <cb@256bit.org >
2024-07-11 00:41:40 +02:00
zeertzjq
15f6cf0c8f
vim-patch:7a85e34: runtime(doc): fix inconsistencies in :h file-searching ( #29652 )
...
closes : vim/vim#15201
https://github.com/vim/vim/commit/7a85e343d29e502f66e2c3035808911e5a843e99
2024-07-11 06:27:40 +08:00
Christian Clason and Tomodachi94
17bc5af01b
vim-patch:9.1.0553: filetype: *.mcmeta files are not recognized
...
Problem: filetype: *.mcmeta files are not recognized
Solution: Detect '*.mcmeta' files as json filetype
(Tomodachi94)
"pack.mcmeta" was added to the JSON tests because that is the most common
filename with that extension.
There are currently 34,000 instances of this file extension on GitHub:
https://github.com/search?q=path%3A*.mcmeta&type=code&p=2
.zip files with this extension have downloads in the millions on sites
like CurseForge:
https://www.curseforge.com/minecraft/search?page=1&pageSize=20&sortBy=relevancy&class=texture-packs
Further reading about the file extension:
https://minecraft.wiki/w/Tutorials/Creating_a_resource_pack#Creating_a_.MCMETA_file
closes : vim/vim#15189
https://github.com/vim/vim/commit/d33a518025765c4a3530ad6cfb6cab83a30c8f55
Co-authored-by: Tomodachi94 <tomodachi94@protonmail.com >
2024-07-10 09:31:48 +02:00
Christian Clason and Dennis van den Berg
7fa089f463
vim-patch:9.1.0551: filetype: htmlangular files are not properly detected
...
Problem: filetype: htmlangular files are not properly detected
Solution: Use the new htmlangular filetype for angular files, because
since angular v17, those are no longer valid HTML files.
(Dennis van den Berg)
Since Angular 17, the new Control Flow Syntax is not valid HTML. This PR
adds a new filetype detection for the HTML templates of Angular.
It first checks the filename. The Angular convention is to use
*.component.html for the template. However, this is not mandatory.
If the filename does not match, it will check the contents of the file
if it contains:
- One of the Control-Flow blocks: @if, @for, @switch, @defer
- A structural directive: *ngIf, *ngFor, *ngSwitch, *ngTemplateOutlet
- Builtin Angular elements: ng-template or ng-content
- String interpolation: {{ something }}
This enables the Angular LSP to attach only to htmlangular filetypes, as
well as language parsers, such as tree-sitter.
closes : vim/vim#15190
https://github.com/vim/vim/commit/1ad194c0dfd82ca1e7a1b6f2fca89a487794158d
Co-authored-by: Dennis van den Berg <dennis.vandenberg@nedap.com >
2024-07-10 09:31:48 +02:00
Christian Clason and Yinzuo Jiang
136c11ca22
vim-patch:9.1.0550: filetype: antlr4 files are not recognized
...
Problem: filetype: antlr4 files are not recognized
Solution: Detect '*.g4' as antlr4 filetype, include a simple antlr4
syntax and filetype plugin (Yinzuo Jiang)
closes : vim/vim#15191
https://github.com/vim/vim/commit/4a7a4a3675b6ad90a525524ba4684925df212325
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com >
2024-07-10 09:31:48 +02:00
zeertzjq and LemonBoy
158ffd646d
vim-patch:9.1.0554: :bw leaves jumplist and tagstack data around ( #29639 )
...
Problem: :bw leaves jumplist and tagstack data around
(Paul "Joey" Clark)
Solution: Wipe jumplist and tagstack references to the wiped buffer
(LemonBoy)
As documented the :bwipeout command brutally deletes all the references
to the buffer, so let's make it delete all the entries in the jump list
and tag stack referring to the wiped-out buffer.
fixes : vim/vim#8201
closes : vim/vim#15185
https://github.com/vim/vim/commit/4ff3a9b1e3ba45f9dbd0ea8c721f27d9315c4d93
Co-authored-by: LemonBoy <thatlemon@gmail.com >
2024-07-10 10:35:12 +08:00
zeertzjq and LemonBoy
545aafbeb8
vim-patch:9.1.0547: No way to get the arity of a Vim function ( #29638 )
...
Problem: No way to get the arity of a Vim function
(Austin Ziegler)
Solution: Enhance get() Vim script function to return the function
argument info using get(func, "arity") (LemonBoy)
fixes : vim/vim#15097
closes : vim/vim#15109
https://github.com/vim/vim/commit/48b7d05a4f88c4326bd5d7a73a523f2d953b3e51
Co-authored-by: LemonBoy <thatlemon@gmail.com >
2024-07-10 08:07:16 +08:00
f3c7fb9db1
vim-patch:73a8108: runtime(tmux): Update syntax script
...
closes : vim/vim#15195
related: vim/vim#15188
https://github.com/vim/vim/commit/73a810817b9bea7ce31e625bf5519b6a02f53d41
Co-authored-by: Eric Pruitt <eric.pruitt@gmail.com >
Co-authored-by: Contsantine Bulany <61948252+lostl1ght@users.noreply.github.com >
2024-07-09 22:05:45 +02:00
Max Coplan
d918ebe3b8
fix(diagnostic): fix backwards compatibility for goto_next and goto_prev ( #29593 )
2024-07-09 14:08:12 -05:00
Christian Clason
51d85f7ea5
build(deps): drop unused bundled bash, python parsers and queries
...
Problem: Neovim bundles treesitter parsers for bash and python but does
not use them by default. This dilutes the messaging about the bundled
parsers being required for functionality or reasonable out-of-the-box
experience. It also increases the risk of query incompatibilities for no
gain.
Solution: Stop bundling bash and python parser and queries.
2024-07-09 15:26:48 +02:00
zeertzjq
487f44a6c1
fix(lua): change some vim.fn.expand() to vim.fs.normalize() ( #29583 )
...
Unlike vim.fn.expand(), vim.fs.normalize() doesn't expand wildcards.
2024-07-09 19:17:50 +08:00
zeertzjq
fb6c059dc5
vim-patch:d1c3698: runtime(doc): fix typo in :h ft-csv-syntax ( #29619 )
...
closes : vim/vim#15179
https://github.com/vim/vim/commit/d1c369892d49775e3da502981d0d896c98592528
2024-07-09 06:41:26 +08:00
9ebf3454ad
vim-patch:ab03dd2: runtime(hlsplaylist): include hlsplaylist ftplugin file
...
fixes : vim/vim#15156
closes : vim/vim#15162
https://github.com/vim/vim/commit/ab03dd2085a37a62864cbf8616ebd52b8bbc3f6b
Co-authored-by: AvidSeeker <avidseeker7@protonmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2024-07-09 00:34:34 +02:00
Evgeni Chasnovski
dc04ef2a20
perf(filetype): skip contents check in match() if there is no contents ( #29596 )
...
Problem: `vim.filetype.match()` tries to match on contents even if there
is no contents (empty buffer or `{''}` explicit contents).
This results in extra avoidable execution duration for cases.
It matters, for example, when trying to match filetype based solely
on file name (which still needs `contents` or `buf` to properly match
earlier in the code path).
Solution: skip matching based solely on contents if it is `{''}`. This
works because:
- Matching solely on content is done after any user-configured
`vim.filetype.add()` hooks.
- All default matching on content might depend on supplied path
*only* if there is non-empty content (like in
`require('vim.filetype.detect').match_from_hashbang()`).
2024-07-08 11:20:32 -05:00
Christian Clason and Riley Bruins
b3d94b1087
vim-patch:f77a0e9: runtime(cmakecache): include cmakecache ftplugin file
...
closes : vim/vim#15175
https://github.com/vim/vim/commit/f77a0e9f417d41a3c35de86a42a75d10b633f19a
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
3b4481d3a5
vim-patch:380f980: runtime(lex): include lex ftplugin file
...
Spec found [here](https://docs.oracle.com/cd/E19504-01/802-5880/lex-6/index.html )
closes : vim/vim#15174
https://github.com/vim/vim/commit/380f98002dace3848dacc5178289d55745efc757
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
f7274fde06
vim-patch:7d60dc2: runtime(yacc): include yacc ftplugin file
...
closes : vim/vim#15173
https://github.com/vim/vim/commit/7d60dc20695aa812699700552b084e581eed509f
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
e271110e37
vim-patch:08b0c12: runtime(squirrel): include squirrel ftplugin file
...
Comment spec found [here](https://squirrel-lang.org/squirreldoc/reference/language/lexical_structure.html#comments )
closes : vim/vim#15172
https://github.com/vim/vim/commit/08b0c12716062f45046cd13da05bde0a72383813
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
79c63b5561
vim-patch:2c9ef3a: runtime(objcpp): include objcpp ftplugin file
...
This one just sources the objc.vim ftplugin.
closes : vim/vim#15170
https://github.com/vim/vim/commit/2c9ef3a671ecbd6fd868cb06e16817a1c15a5eb7
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
8aab46da5e
vim-patch:94c1c66: runtime(tf): include tf ftplugin file
...
Adds ftplugin support for tf (TinyFugue). Comment support taken from
[here](https://github.com/kruton/tinyfugue/blob/1e8ac0bb014036c07bb3c679b0292ef20a6a0bb5/src/command.c#L568 )
closes : vim/vim#15168
https://github.com/vim/vim/commit/94c1c6638a652cbe21b4d25ae5f26078e2e633d7
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
97704a6694
vim-patch:01e2090: runtime(mysql): include mysql ftplugin file
...
This one just sources from the SQL ftplugin. Without this, *.mysql
files don't inherit the common SQL settings.
closes : vim/vim#15166
https://github.com/vim/vim/commit/01e20902f44afaf29fa31a4ecc1f651907d778b4
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00
Christian Clason and Riley Bruins
d70c224131
vim-patch:a264bb9: runtime(javacc): include javacc ftplugin file
...
closes : vim/vim#15167
https://github.com/vim/vim/commit/a264bb931eb9e470b6a3af1c255988dd526adb70
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-07-08 12:14:44 +02:00