Skip to content

Commit

Permalink
fix(nvim)!: use new vim.lsp.inlay_hints.enable() function
Browse files Browse the repository at this point in the history
Neovim merged [a breaking PR][1] that modified `vim.lsp.inlay_hints`
into a module with functions. This required a config update to fix inlay
hints.

[1]: neovim/neovim#25512
  • Loading branch information
accidentaldevelopment committed Nov 13, 2023
1 parent 4fd58e7 commit 2d9a1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot_config/nvim/lua/plugin/lsp/init.lua
Expand Up @@ -37,7 +37,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
if client and client.supports_method(methods.textDocument_inlayHint) then
-- For some reason, inlay hints don't show up for me until InsertEnter. This defer resolves that.
vim.defer_fn(function()
vim.lsp.inlay_hint(0, true)
vim.lsp.inlay_hint.enable(0, true)
end, 500)
end
else
Expand Down

0 comments on commit 2d9a1f7

Please sign in to comment.