lvimuser / lsp-inlayhints.nvim

Apache License 2.0
423 stars 23 forks source link

Hints show at the end of the line #23

Closed WhyNotHugo closed 2 years ago

WhyNotHugo commented 2 years ago

Hints render at the end of the line, instead of inline. I'm using neovim 0.8.0 (stable release).

My config:

require("lsp-inlayhints").setup()

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

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

Screenshot:

image

Any ideas what could be wrong?

polyzen commented 2 years ago

https://github.com/lvimuser/lsp-inlayhints.nvim/issues/17#issuecomment-1242142570