mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Detect if using nvim 0.10 and use new inlay_hint.enable method
This commit is contained in:
parent
68ff818a5b
commit
bd4668737d
1 changed files with 5 additions and 1 deletions
|
|
@ -120,7 +120,11 @@ return {
|
|||
if opts.inlay_hints.enabled and inlay_hint then
|
||||
Util.lsp.on_attach(function(client, buffer)
|
||||
if client.supports_method("textDocument/inlayHint") then
|
||||
inlay_hint(buffer, true)
|
||||
if vim.fn.has("nvim-0.10") == 1 then
|
||||
inlay_hint.enable(buffer, true)
|
||||
else
|
||||
inlay_hint(buffer, true)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue