16 lines
582 B
Lua
16 lines
582 B
Lua
-- You can add your own plugins here or in other files in this directory!
|
|
-- I promise not to create any merge conflicts in this directory :)
|
|
--
|
|
-- See the kickstart.nvim README for more information
|
|
vim.api.nvim_create_autocmd('LspAttach', {
|
|
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
|
callback = function(args)
|
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
|
if client and client.server_capabilities.inlayHintProvider then
|
|
vim.lsp.inlay_hint.enable(args.buf, true)
|
|
end
|
|
-- whatever other lsp config you want
|
|
end,
|
|
})
|
|
return {}
|