Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/config/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if vim.g.vscode then
end

local blink_ok = pcall(require, "blink.cmp")
local BUF = "buffer"
local BUF = "buf"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve keymap compatibility with pre-0.12 Neovim

On the pre-0.12 distro installations that this module explicitly supports, vim.keymap.set recognizes only opts.buffer; it forwards the unknown buf option to nvim_set_keymap, which rejects it. Consequently, every LspAttach callback errors before installing the gd and <leader>la mappings or setting formatexpr. Keep buffer until old-version support is dropped, or select the option name based on the Neovim version.

Useful? React with 👍 / 👎.


-- lua
vim.lsp.config("luals", {
Expand Down
Loading