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/diagnostic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/diagnostic.lua') diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index 84fd65785b..e2f712bb62 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -2661,7 +2661,7 @@ function M.open_float(opts, ...) else vim.cmd.normal({ 'gf', bang = true }) end - end, { buffer = float_bufnr, remap = false }) + end, { buf = float_bufnr, remap = false }) --- @diagnostic disable-next-line: deprecated local add_highlight = api.nvim_buf_add_highlight -- cgit