feat(nvim): add copilot chat plugin

This commit is contained in:
Stefan Imhoff
2024-05-24 12:51:40 +02:00
parent ba0402957c
commit 5eaa155038
4 changed files with 17 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{ {
"ChatGPT.nvim": { "branch": "main", "commit": "df53728e05129278d6ea26271ec086aa013bed90" }, "ChatGPT.nvim": { "branch": "main", "commit": "df53728e05129278d6ea26271ec086aa013bed90" },
"CopilotChat.nvim": { "branch": "canary", "commit": "bac4dcc894332eddc989758d875cab84ab52944d" },
"LazyVim": { "branch": "main", "commit": "c6e8c5b45011210042e0791bd52baff8784ed26a" }, "LazyVim": { "branch": "main", "commit": "c6e8c5b45011210042e0791bd52baff8784ed26a" },
"LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" }, "LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" },
"SchemaStore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" }, "SchemaStore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" },

View File

@@ -0,0 +1,13 @@
-- Chat with GitHub Copilot in Neovim
-- https://github.com/CopilotC-Nvim/CopilotChat.nvim
return {
{
"CopilotC-Nvim/CopilotChat.nvim",
branch = "canary",
dependencies = {
{ "zbirenbaum/copilot.lua" }, -- or github/copilot.vim
{ "nvim-lua/plenary.nvim" }, -- for curl, log wrapper
},
opts = {},
},
}

View File

@@ -1,7 +1,9 @@
#!/bin/sh #!/bin/sh
asdf plugin add lua asdf plugin add lua
asdf install lua 5.1
asdf install lua latest asdf install lua latest
asdf global lua latest asdf global lua latest
luarocks install --server=https://luarocks.org/dev luaformatter luarocks install --server=https://luarocks.org/dev luaformatter
sudo luarocks install --lua-version 5.1 tiktoken_core

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
asdf plugin add rust asdf plugin add rust
asdf install rust latest asdf install rust latest