fix(nvim): use new call to enable inlay hints

This commit is contained in:
Price Hiller 2023-11-15 03:30:04 -06:00
parent 064f97f3b0
commit 8c9d56a0c1
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -151,14 +151,14 @@ return {
vim.api.nvim_create_autocmd("InsertEnter", { vim.api.nvim_create_autocmd("InsertEnter", {
buffer = bufnr, buffer = bufnr,
callback = function() callback = function()
vim.lsp.inlay_hint(bufnr, true) vim.lsp.inlay_hint.enable(bufnr, true)
end, end,
group = lsp_augroup, group = lsp_augroup,
}) })
vim.api.nvim_create_autocmd("InsertLeave", { vim.api.nvim_create_autocmd("InsertLeave", {
buffer = bufnr, buffer = bufnr,
callback = function() callback = function()
vim.lsp.inlay_hint(bufnr, false) vim.lsp.inlay_hint.enable(bufnr, false)
end, end,
group = lsp_augroup, group = lsp_augroup,
}) })