diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-05 08:54:09 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-05 08:54:09 +0100 |
| commit | 3aa233125a3e0a1f5f4de98a4987a032a3c04d68 (patch) | |
| tree | 374ac40687a6529c6ff6a068c19b29db6a6d503a /init.lua | |
| parent | f2f382e2baf94fb5491883bfe9fc4e7a160781ff (diff) | |
| parent | 6211fa0766f8227a819df2248c8db25d5c58c01f (diff) | |
| download | vis-lspc-3aa233125a3e0a1f5f4de98a4987a032a3c04d68.tar.gz vis-lspc-3aa233125a3e0a1f5f4de98a4987a032a3c04d68.zip | |
Merge branch 'fix-vis-menu-cursors'
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -358,11 +358,19 @@ local function lspc_select(choices) return choices[1] end + local status, output local cmd = 'printf "' .. menu_input .. '" | ' .. lspc.menu_cmd lspc.log('collect choice using: ' .. cmd) - local menu = io.popen(cmd) - local output = menu:read('*a') - local _, _, status = menu:close() + + if lspc.menu_cmd == 'vis-menu' then + status, output = vis:pipe(vis.win.file, {start = 0, finish = 0}, cmd) + else + local menu = io.popen(cmd) + output = menu:read('*a') + local _, _, _status = menu:close() + status = _status + + end local choice = nil if status == 0 then |
