You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the lspconfig.lua file methods M.on_attach and M.toggle_inlay_hints with the below code fixed the issue for me.
M.on_attach = function(client, bufnr)
lsp_keymaps(bufnr)
if client.supports_method "textDocument/inlayHint" then
vim.lsp.inlay_hint.enable(true, { bufnr })
end
end
M.toggle_inlay_hints = function()
local bufnr = vim.api.nvim_get_current_buf()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr }), { bufnr })
end
When trying to edit a lua file:
I think the problem is in
lspconfig.lua
. There is some information - neovim/neovim#26679.The text was updated successfully, but these errors were encountered: