Merge 'upstream' prefer_git, inlay hints

- add prefer_git to treesitter config
- Enable inlay hints for the supporting servers
This commit is contained in:
Damjan 9000
2024-04-17 20:42:05 +02:00
3 changed files with 13 additions and 0 deletions

View File

@@ -115,6 +115,16 @@ return {
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
map('<leader>th', function()
vim.lsp.inlay_hint.enable(0, not vim.lsp.inlay_hint.is_enabled())
end, '[T]oggle Inlay [H]ints')
end
end,
})