fix(nvim): toggle of inlay hints

nixos
Moritz Böhme 2024-01-22 15:25:47 +01:00
parent 0a0c675552
commit a9e0b92d81
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ local on_attach_def = function(client, bufnr)
},
i = {
function()
vim.lsp.inlay_hint(bufnr, nil)
vim.lsp.inlay_hint.enable(bufnr, not vim.lsp.inlay_hint.is_enabled(bufnr))
end,
"LSP inlay hints",
},