Inlay hints for Neovim 0.10.0
This commit is contained in:
parent
4f450498be
commit
3f1c1e6c38
|
@ -2,4 +2,14 @@
|
|||
-- 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 {}
|
||||
|
|
Loading…
Reference in New Issue