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", {
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
vim.lsp.inlay_hint(bufnr, true)
|
||||
vim.lsp.inlay_hint.enable(bufnr, true)
|
||||
end,
|
||||
group = lsp_augroup,
|
||||
})
|
||||
vim.api.nvim_create_autocmd("InsertLeave", {
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
vim.lsp.inlay_hint(bufnr, false)
|
||||
vim.lsp.inlay_hint.enable(bufnr, false)
|
||||
end,
|
||||
group = lsp_augroup,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user