19 lines
592 B
Lua
19 lines
592 B
Lua
-- Set the colorscheme for the Copilot suggestions and annotations
|
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
|
callback = function()
|
|
vim.api.nvim_set_hl(0, "CopilotSuggestion", { fg = "#f3f412", italic = true })
|
|
vim.api.nvim_set_hl(0, "CopilotAnnotation", { fg = "#f3f412" })
|
|
end,
|
|
})
|
|
|
|
-- Enable inlay hints
|
|
vim.api.nvim_create_autocmd("LspAttach", {
|
|
callback = function(args)
|
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
|
if client.server_capabilities.inlayHintProvider then
|
|
vim.lsp.inlay_hint.enable(true, { bufnr = args.buf })
|
|
end
|
|
end,
|
|
})
|
|
|