Skip to content

Commit

Permalink
Fix inlay hints setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalDevil committed Oct 16, 2023
1 parent a869066 commit 330e289
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lsp/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ local M = {}

local complete_util = require("complete.util")

local inlay_hint = vim.lsp.buf.inlay_hint or vim.lsp.inlay_hint

function M.key_attach(bufnr)
---@param opts table?
local function buf_set_keymap(mode, lhs, rhs, opts)
Expand Down Expand Up @@ -74,7 +76,7 @@ function M.set_inlay_hints(client, bufnr)
end

if client.supports_method("textDocument/inlayHint") or client.server_capabilities.inlayHintProvider then
vim.lsp.inlay_hint(bufnr, true)
inlay_hint(bufnr, true)
end
end

Expand Down

0 comments on commit 330e289

Please sign in to comment.