feat(nvim): enable lsp inlay hints by default
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m5s

This commit is contained in:
Price Hiller 2024-08-31 04:00:01 -05:00
parent efaa05fe5d
commit 435937ddb8
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -324,6 +324,10 @@ return {
if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then
require("hlargs").disable_buf(bufnr) require("hlargs").disable_buf(bufnr)
end end
if capabilities.inlayHintProvider and not vim.lsp.inlay_hint.is_enabled({ bufnr = bufnr }) then
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
end
end, end,
}) })
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")