Skip to content

Commit

Permalink
chore(avante): modify
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Feb 4, 2025
1 parent 9d48074 commit af6a696
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion fnl/prelude.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@
(desc "toggle diagnostics (workspace)")]
[:tR
(lcmd "require('spectre').toggle()")
(desc "toggle spectre")]])]
(desc "toggle spectre")]
;; AI
[:aa (cmd :AvanteAsk) (desc "Avante Ask")]
[:at (cmd :AvanteToggle) (desc "Avante Toggle")]])]
(vim.keymap.set :n (.. :<Leader> (. K 1)) (. K 2) (or (. K 3) opts)))
(each [m ks (pairs {:n [["¥" "\\"] [:<C-t> (cmd :OpenMenu)]]
:i [["¥" "\\"]]
Expand Down
2 changes: 1 addition & 1 deletion lua/autogen/prelude.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lua/avante.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pcall(dofile, vim.env.HOME .. "/.config/nvim/avante.lua")

require("avante_lib").load()
require("avante").setup({
provider = "copilot",
auto_suggestions_provider = "copilot",
auto_suggestions_provider = "claude",
dual_boost = { enabled = false },
hints = { enabled = true },
behaviour = {
Expand Down
5 changes: 4 additions & 1 deletion main/tool.nix
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ rec {
copilot-lua
];
postConfig = read ../lua/avante.lua;
hooks.commands = [ "AvanteAsk" ];
hooks.commands = [
"AvanteAsk"
"AvanteToggle"
];
};
screenkey = {
package = screenkey-nvim;
Expand Down

0 comments on commit af6a696

Please sign in to comment.