From 8c9d56a0c1b5091747e4071bad2393a5372f1a95 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 15 Nov 2023 03:30:04 -0600 Subject: [PATCH] fix(nvim): use new call to enable inlay hints --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index 4e321e3e..e386fa2a 100644 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -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, })