Skip to content

Commit 3504bf3

Browse files
committed
fix(nvim): only load avante when key available
1 parent 3ca14b0 commit 3504bf3

File tree

1 file changed

+3
-0
lines changed
  • home/private_dot_config/nvim/lua/plugins

1 file changed

+3
-0
lines changed

home/private_dot_config/nvim/lua/plugins/avante.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ return {
22
"yetone/avante.nvim",
33
event = "VeryLazy",
44
version = "*",
5+
enabled = function()
6+
return os.getenv("ANTHROPIC_API_KEY") == nil
7+
end,
58
opts = {
69
behaviour = {
710
auto_suggestions = true,

0 commit comments

Comments
 (0)