diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-11 15:02:36 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-11 15:02:36 +0100 |
| commit | 27436a995cc1e71c50c5d9b186ebdbc1a25d53cb (patch) | |
| tree | 2ff011b100fc502d2e1c9a4d401bc28bbad359c8 | |
| parent | 5140a3ae419152735018c2b51887251cccf7a490 (diff) | |
| download | vis-lspc-27436a995cc1e71c50c5d9b186ebdbc1a25d53cb.tar.gz vis-lspc-27436a995cc1e71c50c5d9b186ebdbc1a25d53cb.zip | |
make vis-menu and vertical selection the default menu cmd
| -rw-r--r-- | init.lua | 3 | ||||
| -rw-r--r-- | lspc.lua | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -362,14 +362,13 @@ local function lspc_select(choices) local cmd = 'printf "' .. menu_input .. '" | ' .. lspc.menu_cmd lspc.log('collect choice using: ' .. cmd) - if lspc.menu_cmd == 'vis-menu' then + if lspc.menu_cmd:sub(0, 8) == '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 @@ -13,7 +13,7 @@ local lspc = { autostart = true, -- program used to let the user make choices -- The available choices are pass to <menu_cmd> on stdin separated by '\n' - menu_cmd = 'vis-menu', + menu_cmd = 'vis-menu -l 10', -- program used to ask the user for confirmation confirm_cmd = 'vis-menu', |
