We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32368d commit 2e221a8Copy full SHA for 2e221a8
init.lua
@@ -438,6 +438,16 @@ require('lazy').setup({
438
callback = vim.lsp.buf.clear_references,
439
})
440
end
441
+
442
+ -- The following autocommand is used to enable inlay hints in your
443
+ -- code, if the language server you are using supports them
444
+ --
445
+ -- This may be unwanted, since they displace some of your code
446
+ if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
447
+ map('<leader>th', function()
448
+ vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
449
+ end, '[T]oggle Inlay [H]ints')
450
+ end
451
end,
452
453
0 commit comments