dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

lsp-inlayhints.lua (426B)


      1 require('lsp-inlayhints').setup()
      2 vim.api.nvim_create_augroup("LspAttach_inlayhints", {})
      3 vim.api.nvim_create_autocmd("LspAttach", {
      4   group = "LspAttach_inlayhints",
      5   callback = function(args)
      6     if not (args.data and args.data.client_id) then
      7       return
      8     end
      9 
     10     local bufnr = args.buf
     11     local client = vim.lsp.get_client_by_id(args.data.client_id)
     12     require("lsp-inlayhints").on_attach(client, bufnr)
     13   end,
     14 })