From 32f4365cbe5dbd290aaf33865e1a78f3487afd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuna=20Alika=C5=9Fifo=C4=9Flu?= Date: Fri, 19 Apr 2024 00:04:55 +0300 Subject: [PATCH] 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 --- lua/lazyvim/util/toggle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/toggle.lua b/lua/lazyvim/util/toggle.lua index cb380d0d..ee577b03 100644 --- a/lua/lazyvim/util/toggle.lua +++ b/lua/lazyvim/util/toggle.lua @@ -67,7 +67,7 @@ function M.inlay_hints(buf, value) if value == nil then value = not ih.is_enabled(buf) end - ih.enable(buf, value) + ih.enable(value, { buffrn = buf }) end end