mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(nvim): AI edit with avante-nvim
This commit is contained in:
parent
6885636712
commit
385f289e1a
5 changed files with 90 additions and 23 deletions
23
tools/nvim/lua/plugins/mod/copilot-lua.lua
Normal file
23
tools/nvim/lua/plugins/mod/copilot-lua.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
cmd = "Copilot",
|
||||
build = ":Copilot auth",
|
||||
event = "BufReadPost",
|
||||
opts = {
|
||||
suggestion = {
|
||||
enabled = not vim.g.ai_cmp,
|
||||
auto_trigger = true,
|
||||
hide_during_completion = vim.g.ai_cmp,
|
||||
keymap = {
|
||||
accept = "<M-f>",
|
||||
next = "<M-]>",
|
||||
prev = "<M-[>",
|
||||
},
|
||||
},
|
||||
panel = { enabled = false },
|
||||
filetypes = {
|
||||
markdown = true,
|
||||
help = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue