Skip to content

Commit

Permalink
feat(copilot): add integration (#803)
Browse files Browse the repository at this point in the history
* feat: add copilot.vim support

* chore: alphabetize the field types

* feat: switch to overlay0 for the virtual suggestion text

* docs: Add `copilot_vim` to the integrations section

* feat: make copilot vim disabled by default
  • Loading branch information
joshmedeski authored Nov 23, 2024
1 parent 637d99e commit b71eacb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,20 @@ cmp = true
</tr>
<!-- nvim-cmp -->

<!-- nvim-copilot-vim -->
</tr>
<tr>
<td> <a href="https://github.com/github/copilot.vim">copilot.vim</a> </td>
<td>

```lua
copilot_vim = false,
```

</td>
</tr>
<!-- nvim-copilot-vim -->

<!-- nvim-dap -->
</tr>
<tr>
Expand Down
10 changes: 10 additions & 0 deletions lua/catppuccin/groups/integrations/copilot_vim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
local M = {}

function M.get()
return {
CopilotSuggestion = { fg = C.overlay0 },
CopilotAnnotation = { fg = C.blue },
}
end

return M
3 changes: 2 additions & 1 deletion lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@
---@field barbecue CtpIntegrationBarbecue | boolean?
---@field beacon boolean?
---@field blink_cmp boolean?
---@field colorful_winsep CtpIntegrationColorfulWinsep | boolean?
---@field cmp boolean?
-- `coc.nvim` links to `native_lsp` highlight groups, so you can use
-- `native_lsp.virtual_text` and `native_lsp.underlines` to style diagnostics.
---@field coc_nvim boolean?
---@field colorful_winsep CtpIntegrationColorfulWinsep | boolean?
---@field copilot_vim boolean?
-- ```lua
-- local sign = vim.fn.sign_define
--
Expand Down

0 comments on commit b71eacb

Please sign in to comment.