mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 19:32:01 +00:00
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`.
This commit is contained in:
@@ -862,7 +862,7 @@ function lsp._set_defaults(client, bufnr)
|
||||
then
|
||||
vim.keymap.set('n', 'K', function()
|
||||
vim.lsp.buf.hover()
|
||||
end, { buffer = bufnr, desc = 'vim.lsp.buf.hover()' })
|
||||
end, { buf = bufnr, desc = 'vim.lsp.buf.hover()' })
|
||||
end
|
||||
end)
|
||||
if client:supports_method('textDocument/diagnostic') then
|
||||
|
||||
Reference in New Issue
Block a user