Skip to content

Commit 34295fa

Browse files
committed
update config
1 parent c842e08 commit 34295fa

File tree

2 files changed

+35
-20
lines changed

2 files changed

+35
-20
lines changed

lua/plugins/avante.lua

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ return {
3131
},
3232
},
3333
mappings = {
34+
sidebar = {
35+
apply_all = "A",
36+
apply_cursor = "a",
37+
retry_user_request = "r",
38+
edit_user_request = "e",
39+
switch_windows = "<c-f>",
40+
reverse_switch_windows = "<c-f>",
41+
remove_file = "d",
42+
add_file = "@",
43+
close = { "<Esc>", "q" },
44+
---@alias AvanteCloseFromInput { normal: string | nil, insert: string | nil }
45+
---@type AvanteCloseFromInput | nil
46+
close_from_input = nil, -- e.g., { normal = "<Esc>", insert = "<C-d>" }
47+
},
48+
3449
diff = {
3550
ours = "do",
3651
theirs = "dt",
@@ -72,24 +87,24 @@ return {
7287
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
7388
"ibhagwan/fzf-lua", -- for file_selector provider fzf
7489
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
75-
"zbirenbaum/copilot.lua", -- for providers='copilot'
76-
{
77-
-- support for image pasting
78-
"HakonHarnes/img-clip.nvim",
79-
event = "VeryLazy",
80-
opts = {
81-
-- recommended settings
82-
default = {
83-
embed_image_as_base64 = false,
84-
prompt_for_file_name = false,
85-
drag_and_drop = {
86-
insert_mode = true,
87-
},
88-
-- required for Windows users
89-
use_absolute_path = true,
90-
},
91-
},
92-
},
90+
-- "zbirenbaum/copilot.lua", -- for providers='copilot'
91+
-- {
92+
-- -- support for image pasting
93+
-- "HakonHarnes/img-clip.nvim",
94+
-- event = "VeryLazy",
95+
-- opts = {
96+
-- -- recommended settings
97+
-- default = {
98+
-- embed_image_as_base64 = false,
99+
-- prompt_for_file_name = false,
100+
-- drag_and_drop = {
101+
-- insert_mode = true,
102+
-- },
103+
-- -- required for Windows users
104+
-- use_absolute_path = true,
105+
-- },
106+
-- },
107+
-- },
93108
{
94109
-- Make sure to set this up properly if you have lazy=true
95110
"MeanderingProgrammer/render-markdown.nvim",

lua/plugins/vim-arsync.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
return {
22
"https://github.com/MayDomine/arsync.nvim.git",
33
build = ":UpdateRemotePlugins",
4-
lazy = true,
5-
dependencies = { "folke/snacks.nvim" },
4+
lazy = false,
5+
dependencies = { "folke/snacks.nvim", "hrsh7th/nvim-cmp" },
66
cmd = {
77
"ARSyncShow",
88
"ARSyncToggle",

0 commit comments

Comments
 (0)