Skip to content

Commit

Permalink
fix: copilot (#49)
Browse files Browse the repository at this point in the history
- fix(copilot): remove unnecessary copilot.vim
- fix(copilot): add config for copilot.lua
- fix(copilot): fix dependencies
- chore(copilot): bump dependencies
  • Loading branch information
snelling-a authored May 11, 2023
2 parents 6bc8dcd + fc32fe9 commit 2f3ae18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-treesitter": { "branch": "master", "commit": "389eadd48c27aa6dc0e6b992644704f026802a2e" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
"copilot-cmp": { "branch": "master", "commit": "ad4c097bf76c544fce95a2cb6b02f245cb18a6bb" },
"colorful-winsep.nvim": { "branch": "main", "commit": "0576a11c1b2af468019f2b8bc942ec384ccb9aeb" },
"copilot-cmp": { "branch": "master", "commit": "c2cdb3c0f5078b0619055af192295830a7987790" },
"copilot.lua": { "branch": "master", "commit": "653bbdc44cd569a5fd0617e5a9d3df2b1359e230" },
"copilot.vim": { "branch": "release", "commit": "1358e8e45ecedc53daf971924a0541ddf6224faf" },
"dressing.nvim": { "branch": "master", "commit": "540d6e7115fb32b5035ddaf0c1a26cbffb855dac" },
"feline.nvim": { "branch": "main", "commit": "c63983da180595339163d8b7185dd43ddc31e70e" },
"fold-preview.nvim": { "branch": "main", "commit": "b7920cb0aba2b48a6b679bff45f98c3ebc0f0b89" },
Expand Down
8 changes: 3 additions & 5 deletions lua/plugins/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local function get_node_path()
return node
end

local M = { "github/copilot.vim" }
local M = { "zbirenbaum/copilot.lua" }

M.build = ":Copilot auth"

Expand All @@ -38,10 +38,8 @@ M.dependencies = {
})
end,
},
{
"zbirenbaum/copilot.lua",
opts = { copilot_node_path = get_node_path, panel = { enabled = false }, suggestion = { enabled = true } },
},
}

M.opts = { copilot_node_path = get_node_path, panel = { enabled = false }, suggestion = { enabled = true } }

return M

0 comments on commit 2f3ae18

Please sign in to comment.