fix(vim): set vimexpr for build (closes #453) (#458)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-09-02 12:31:13 -04:00
committed by GitHub
parent 7266661413
commit 2b4dff46fc
2 changed files with 4 additions and 1 deletions

View File

@@ -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]

3
autoload/avante.vim Normal file
View File

@@ -0,0 +1,3 @@
function avante#build() abort
return join(luaeval("require('avante').build()"), "\n")
endfunction