Skip to content

Commit

Permalink
fix(nvim): Fix inlay hints for nvim nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Apr 22, 2024
1 parent 29dfbed commit 36dbc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/lua/my/utils/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function M.on_attach_default(client, bufnr)

-- if current nvim version supports inlay hints, enable them
if vim.lsp['inlay_hint'] ~= nil and client.supports_method(Methods.textDocument_inlayHint) then
vim.lsp.inlay_hint.enable(0, true)
vim.lsp.inlay_hint.enable(true)
end

-- Run eslint fixes before writing
Expand Down

0 comments on commit 36dbc45

Please sign in to comment.