2 files changed,
1 insertions(+),
4 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-08-29 16:16:34 +0300
Authored at:
2026-08-29 15:26:09 +0300
Change ID:
nkqwvmtyzusuxvqlotpupsrxorwlmpwp
Parent:
0966286
jump to
| M | main.go |
| M | plugin/viye.lua |
M
main.go
··· 3 3 import ( 4 4 "fmt" 5 5 "os" 6 - "runtime/debug" 7 6 8 7 "github.com/olexsmir/viye/internal/plumbing/config" 9 8 "github.com/olexsmir/viye/internal/plumbing/curl" ··· 22 21 ) 23 22 24 23 func main() { 25 - debug.SetGCPercent(-1) 26 - 27 24 v := viye.New() 28 25 v.Register(&files.Tool{}) 29 26 v.Register(&shell.Tool{})
M
plugin/viye.lua
··· 88 88 if #cmd == 0 then return end 89 89 local body = body_of(cmd_lnum) 90 90 if #body > 0 then vim.list_extend(vim.list_extend(cmd, { "--" }), body) end 91 - vim.system({ "viye", unpack(cmd) }, { text = true }, function(res) 91 + vim.system({ "viye", unpack(cmd) }, { text = true, env = { GOGC = "off" } }, function(res) 92 92 vim.schedule(function() 93 93 if res.code ~= 0 then 94 94 vim.notify(vim.trim(res.stderr), vim.log.levels.ERROR)