From 4d3a67cd620152d11ab9b5f5bdd973f84cc2d44b Mon Sep 17 00:00:00 2001 From: skewb1k Date: Sat, 21 Mar 2026 16:00:06 +0000 Subject: 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`. --- runtime/lua/vim/lsp/buf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/lsp/buf.lua') diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index e475b39861..d8105efbff 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -462,12 +462,12 @@ function M.signature_help(config) vim.keymap.set('n', '(nvim.lsp.ctrl-s)', function() show_signature(fwin) end, { - buffer = fbuf, + buf = fbuf, desc = 'Cycle next signature', }) if vim.fn.hasmapto('(nvim.lsp.ctrl-s)', 'n') == 0 then vim.keymap.set('n', '', '(nvim.lsp.ctrl-s)', { - buffer = fbuf, + buf = fbuf, desc = 'Cycle next signature', }) end -- cgit