diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 209a1a2..1e33022 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,5 +1,6 @@ { "ChatGPT.nvim": { "branch": "main", "commit": "df53728e05129278d6ea26271ec086aa013bed90" }, + "CopilotChat.nvim": { "branch": "canary", "commit": "bac4dcc894332eddc989758d875cab84ab52944d" }, "LazyVim": { "branch": "main", "commit": "c6e8c5b45011210042e0791bd52baff8784ed26a" }, "LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" }, "SchemaStore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" }, diff --git a/nvim/lua/plugins/copilot-chat.lua b/nvim/lua/plugins/copilot-chat.lua new file mode 100644 index 0000000..dac6927 --- /dev/null +++ b/nvim/lua/plugins/copilot-chat.lua @@ -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 = {}, + }, +} diff --git a/setup/lua.sh b/setup/lua.sh index 30b2b17..e35d11e 100755 --- a/setup/lua.sh +++ b/setup/lua.sh @@ -1,7 +1,9 @@ #!/bin/sh asdf plugin add lua +asdf install lua 5.1 asdf install lua latest asdf global lua latest luarocks install --server=https://luarocks.org/dev luaformatter +sudo luarocks install --lua-version 5.1 tiktoken_core diff --git a/setup/rust.sh b/setup/rust.sh index 5e5af9d..f92299a 100755 --- a/setup/rust.sh +++ b/setup/rust.sh @@ -1,4 +1,4 @@ - #!/bin/sh +#!/bin/sh asdf plugin add rust asdf install rust latest