aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:21 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:21 +0100
commitb9ba7e545f28d40ea8c81575d09751eccd7ced87 (patch)
treebe26b609b21f80f52b0cf64dfd33c3d294a035f5
parentd8b3a5f355214b960eee60eddabf4379d8f5f2d7 (diff)
downloaddotfiles-b9ba7e545f28d40ea8c81575d09751eccd7ced87.tar.gz
dotfiles-b9ba7e545f28d40ea8c81575d09751eccd7ced87.tar.bz2
dotfiles-b9ba7e545f28d40ea8c81575d09751eccd7ced87.zip
fix: correct inlay_hint.is_enabled API for Neovim 0.12
Neovim 0.12 changed the signature from a table { bufnr = N } to a plain integer bufnr parameter.
-rw-r--r--home/.config/nvim/lua/plugins/lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/.config/nvim/lua/plugins/lsp.lua b/home/.config/nvim/lua/plugins/lsp.lua
index 564028e..625dfc6 100644
--- a/home/.config/nvim/lua/plugins/lsp.lua
+++ b/home/.config/nvim/lua/plugins/lsp.lua
@@ -189,7 +189,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
then
nmap("<leader>th", function()
vim.lsp.inlay_hint.enable(
- not vim.lsp.inlay_hint.is_enabled({ bufnr = event.buf })
+ not vim.lsp.inlay_hint.is_enabled(event.buf)
)
end, "[T]oggle Inlay [H]ints")
end