diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index e207642..f4ed64e 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -137,9 +137,9 @@ return { -- capabilities local capabilities = client.server_capabilities - if capabilities.inlayHintProvider then - vim.lsp.buf.inlay_hint(bufnr, true) - end + u.map('n', 'h', function() + vim.lsp.inlay_hint(0, nil) + end, { desc = 'Toggle Inlay Hints' }) if client.supports_method('textDocument/formatting') then local formatting_cb = function()