aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_core
diff options
context:
space:
mode:
authorskewb1k <skewb1kunix@gmail.com>2026-03-21 16:00:06 +0000
committerGitHub <noreply@github.com>2026-03-21 12:00:06 -0400
commit4d3a67cd620152d11ab9b5f5bdd973f84cc2d44b (patch)
tree7cb842e9c15abdfb11d16038ee51c18ace4f7d37 /runtime/lua/vim/_core
parenta969e922497d786ec2fb659978a5d4649c72e6be (diff)
downloadrneovim-4d3a67cd620152d11ab9b5f5bdd973f84cc2d44b.tar.gz
rneovim-4d3a67cd620152d11ab9b5f5bdd973f84cc2d44b.tar.bz2
rneovim-4d3a67cd620152d11ab9b5f5bdd973f84cc2d44b.zip
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/_core')
-rw-r--r--runtime/lua/vim/_core/defaults.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_core/defaults.lua b/runtime/lua/vim/_core/defaults.lua
index 83fa8ed963..69c76118f2 100644
--- a/runtime/lua/vim/_core/defaults.lua
+++ b/runtime/lua/vim/_core/defaults.lua
@@ -741,10 +741,10 @@ do
vim.keymap.set({ 'n', 'x', 'o' }, '[[', function()
jump_to_prompt(nvim_terminal_prompt_ns, 0, ev.buf, -vim.v.count1)
- end, { buffer = ev.buf, desc = 'Jump [count] shell prompts backward' })
+ end, { buf = ev.buf, desc = 'Jump [count] shell prompts backward' })
vim.keymap.set({ 'n', 'x', 'o' }, ']]', function()
jump_to_prompt(nvim_terminal_prompt_ns, 0, ev.buf, vim.v.count1)
- end, { buffer = ev.buf, desc = 'Jump [count] shell prompts forward' })
+ end, { buf = ev.buf, desc = 'Jump [count] shell prompts forward' })
-- If the terminal buffer is being reused, clear the previous exit msg
vim.api.nvim_buf_clear_namespace(ev.buf, nvim_terminal_exitmsg_ns, 0, -1)