Skip to content

Commit

Permalink
Enable inlay hints for the supporting servers
Browse files Browse the repository at this point in the history
  • Loading branch information
VlaDexa committed Apr 14, 2024
1 parent 2377390 commit 2034811
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,14 @@ require('lazy').setup({
callback = vim.lsp.buf.clear_references,
})
end

-- The following autocommand is used to enable inlay hints in your
-- code, if the language server you are using supports them
--
-- This may be unwanted, since they displace some of your code
if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then
vim.lsp.inlay_hint.enable(event.buf, true)
end
end,
})

Expand Down

0 comments on commit 2034811

Please sign in to comment.