Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp-inlayhints error #62

Open
d-e-v-esh opened this issue Sep 11, 2022 · 1 comment
Open

lsp-inlayhints error #62

d-e-v-esh opened this issue Sep 11, 2022 · 1 comment

Comments

@d-e-v-esh
Copy link

d-e-v-esh commented Sep 11, 2022

I'm seeing this error and its not going away.

image

The lsp-inlayhints.lua (error file) looks like this:

local status_ok, hints = pcall(require, "lsp-inlayhints")
if not status_ok then
  return
end

local group = vim.api.nvim_create_augroup("LspAttach_inlayhints", {})
vim.api.nvim_create_autocmd("LspAttach", {
  group = "LspAttach_inlayhints",
  callback = function(args)
    if not (args.data and args.data.client_id) then
      return
    end

    local client = vim.lsp.get_client_by_id(args.data.client_id)
    require("lsp-inlayhints").on_attach(client, args.buf)
  end,
})

hints.setup {
  inlay_hints = {
    parameter_hints = {
      show = false,
      -- prefix = "<- ",
      separator = ", ",
    },
    type_hints = {
      -- type and other hints
      show = true,
      prefix = "",
      separator = ", ",
      remove_colon_end = false,
      remove_colon_start = false,
    },
    -- separator between types and parameter hints. Note that type hints are
    -- shown before parameter
    labels_separator = "  ",
    -- whether to align to the length of the longest line in the file
    max_len_align = false,
    -- padding from the left if max_len_align is true
    max_len_align_padding = 1,
    -- whether to align to the extreme right or not
    right_align = false,
    -- padding from the right if right_align is true
    right_align_padding = 7,
    -- highlight group
    highlight = "Comment",
  },
  debug_mode = false,
}

Does anyone know what is going on?

@ChristianChiarulli
Copy link
Owner

My config requires neovim 0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants