~whynothugo/dotfiles#3: 
nvim: inline hints

https://github.com/lvimuser/lsp-inlayhints.nvim

Seems to require an nvim newer than stable (current is 0.7.2).

Status
REPORTED
Submitter
~whynothugo
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~whynothugo 2 years ago*

Requires unmerged neovim changes.

Try again in a few months. Snippet:

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",
})
Register here or Log in to comment, or comment via email.