fix(nvim): use new call to enable inlay hints
This commit is contained in:
parent
064f97f3b0
commit
8c9d56a0c1
@ -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,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user