mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(inlay-hint): update inlay_hint.enable() args
With merge of neovim/neovim#28374, the `vim.lsp.inlay_hint.enable()` signature has been updated. In the new version, it takes the boolean flag first and accepts a filter in the form of a table. The previous version's buffer input can be passed with the provided implementation. Fixes: #3011
This commit is contained in:
parent
bb36f71b77
commit
32f4365cbe
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ function M.inlay_hints(buf, value)
|
||||||
if value == nil then
|
if value == nil then
|
||||||
value = not ih.is_enabled(buf)
|
value = not ih.is_enabled(buf)
|
||||||
end
|
end
|
||||||
ih.enable(buf, value)
|
ih.enable(value, { buffrn = buf })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue