Skip to content

Commit

Permalink
fix(cmp): copilot in gitcommit and markdown/text
Browse files Browse the repository at this point in the history
  • Loading branch information
realeinherjar committed Sep 6, 2023
1 parent 1b2e675 commit 1f178b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,15 @@ require("lazy").setup({
-- Set configuration for specific filetype.
cmp.setup.filetype("gitcommit", {
sources = cmp.config.sources({
{ name = "git" },
}, {
{ name = "git", group_index = 2 },
{ name = "buffer", group_index = 2 },
{ name = "copilot", group_index = 2 },
}),
})
cmp.setup.filetype({ "markdown", "text", "sql" }, {
sources = cmp.config.sources({
{ name = "buffer", group_index = 2 },
{ name = "copilot", group_index = 2 },
}),
})
-- Use buffer source for `/` and `?`
Expand Down

0 comments on commit 1f178b8

Please sign in to comment.