Skip to content

Commit

Permalink
fix(vim): set vimexpr for build (closes yetone#453) (yetone#458)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
  • Loading branch information
aarnphm authored Sep 2, 2024
1 parent 7266661 commit 2b4dff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Plug 'HakonHarnes/img-clip.nvim'
Plug 'zbirenbaum/copilot.lua'
" Yay
Plug 'yetone/avante.nvim', { 'branch': 'main', 'do': ':AvanteBuild', 'on': 'AvanteAsk' }
Plug 'yetone/avante.nvim', { 'branch': 'main', 'do': { -> avante#build() }, 'on': 'AvanteAsk' }
```

> [!important]
Expand Down
3 changes: 3 additions & 0 deletions autoload/avante.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function avante#build() abort
return join(luaeval("require('avante').build()"), "\n")
endfunction

0 comments on commit 2b4dff4

Please sign in to comment.