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 2377390 commit ec5cc67Copy full SHA for ec5cc67
init.lua
@@ -518,6 +518,16 @@ require('lazy').setup({
518
callback = vim.lsp.buf.clear_references,
519
})
520
end
521
+
522
+ -- The following autocommand is used to enable inlay hints in your
523
+ -- code, if the language server you are using supports them
524
+ --
525
+ -- This may be unwanted, since they displace some of your code
526
+ if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
527
+ map('<leader>ci', function()
528
+ vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
529
+ end, 'Toggle [I]nlay hints')
530
+ end
531
end,
532
533
0 commit comments