diff options
| author | skewb1k <skewb1kunix@gmail.com> | 2026-03-21 16:00:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-21 12:00:06 -0400 |
| commit | 4d3a67cd620152d11ab9b5f5bdd973f84cc2d44b (patch) | |
| tree | 7cb842e9c15abdfb11d16038ee51c18ace4f7d37 /runtime/lua/vim/_meta/api.lua | |
| parent | a969e922497d786ec2fb659978a5d4649c72e6be (diff) | |
feat(lua): replace `buffer` with `buf` in vim.keymap.set/del #38360
The `buffer` option remains functional but is now undocumented.
Providing both will raise an error. Since providing `buf` was disallowed
before, there is no code that will break due to using `buffer` alongside
`buf`.
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index c3a7170b07..dc5bf098b7 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -2018,7 +2018,7 @@ function vim.api.nvim_parse_expression(expr, flags, highlight) end --- line2 --- line3 --- ]], false, -1) ---- end, { buffer = true }) +--- end, { buf = true }) --- ``` --- --- @param data string Multiline input. Lines break at LF ("\n"). May be binary (containing NUL bytes). |
