📦 Initial Commit
This commit is contained in:
parent
5125fd927a
commit
e77acb091e
23 changed files with 516 additions and 24 deletions
20
lua/custom/plugins/inlayhint.lua
Normal file
20
lua/custom/plugins/inlayhint.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
'lvimuser/lsp-inlayhints.nvim',
|
||||
lazy = false,
|
||||
config = function()
|
||||
require('lsp-inlayhints.init').setup();
|
||||
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 bufnr = args.buf
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
require("lsp-inlayhints").on_attach(client, bufnr)
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue