Skip to content

Commit

Permalink
feat(neovim): add blink-cmp-copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 5, 2025
1 parent fbedf84 commit 789d83e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 15 additions & 0 deletions pkgs/neovim-with-config/lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ return {
},
},
signature = { enabled = true },
sources = {
default = { "lsp", "path", "snippets", "buffer", "copilot" },
providers = {
copilot = {
name = "copilot",
module = "blink-cmp-copilot",
score_offset = 100,
async = true,
},
},
},
})
end,
},
Expand All @@ -32,4 +43,8 @@ return {
})
end,
},
{
"blink-cmp-copilot",
event = "InsertEnter",
},
}
4 changes: 1 addition & 3 deletions pkgs/neovim-with-config/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pluginsWithLazy true [
ChatGPT-nvim
FixCursorHold-nvim
blink-cmp
blink-cmp-copilot
bufferline-nvim
comment-nvim
copilot-lua
Expand Down Expand Up @@ -60,7 +61,4 @@ pluginsWithLazy true [
++ (pluginsWithLazy false [
lz-n
nvim-web-devicons
# don't make nvim-cmp related packages lazy loading
# https://github.com/nvim-neorocks/lz.n/wiki/lazy%E2%80%90loading-nvim%E2%80%90cmp-and-its-extensions
copilot-cmp
])

0 comments on commit 789d83e

Please sign in to comment.