all repos

init.lua @ 405e1b0

my nvim config

init.lua/lua/plugins/lsp/inlayhints.lua(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local hints = require "lsp-inlayhints"

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

    hints.on_attach(
      vim.lsp.get_client_by_id(args.data.client_id),
      args.buf,
      true
    )
  end,
})

hints.setup {
  inlay_hints = {
    highlight = "Comment",
    parameter_hints = { show = false },
  },
}