added nvim
This commit is contained in:
parent
02fe17d9a1
commit
975099489a
34 changed files with 1523 additions and 0 deletions
28
.config/nvim/lua/plugins/copilot.lua
Normal file
28
.config/nvim/lua/plugins/copilot.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
{
|
||||
"zbirenbaum/copilot-cmp",
|
||||
opts = function()
|
||||
local copilot_toggle = require("lazyvim.util.toggle").wrap({
|
||||
name = "Copilot Completion",
|
||||
get = function()
|
||||
return not require("copilot.client").is_disabled()
|
||||
end,
|
||||
set = function(state)
|
||||
if state then
|
||||
require("copilot.command").enable()
|
||||
else
|
||||
require("copilot.command").disable()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- disable by default
|
||||
require("copilot.command").disable()
|
||||
|
||||
LazyVim.toggle.map("<leader>at", copilot_toggle)
|
||||
end,
|
||||
},
|
||||
{ "CopilotC-Nvim/CopilotChat.nvim", opts = {
|
||||
auto_insert_mode = false,
|
||||
} },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue