aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-05-14 14:39:32 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-05-14 14:39:32 +0200
commit5847137f3d4a58475427bc128da929a649ebea14 (patch)
tree41951a51f10d2ebf67c306cbe357745ec3a144b1 /README.md
parent49c26dd03681de5e194fc8ebcabe0c7c5d8960ad (diff)
downloadvis-lspc-5847137f3d4a58475427bc128da929a649ebea14.tar.gz
vis-lspc-5847137f3d4a58475427bc128da929a649ebea14.zip
export lspc_select as lspc:select
This allows external code to reuse the select method. Example visrc.lua: local lspc = require('plugins/vis-lspc') local choice = lspc:select({'A', 'B', 'C', '6'})
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0a0b6fc..b67bd9c 100644
--- a/README.md
+++ b/README.md
@@ -253,6 +253,17 @@ get_running_ls(win, explicit_syntax)
- `win` - a window in which the language server is running
- `explicit_syntax` - syntax of the language server if it differs from `win.syntax`
+#### `lspc.select`
+
+Select an item from a list of choices by calling the external program specified by `lspc.menu_cmd`.
+
+```lua
+lspc.select(lspc, choices) -- or
+lspc:select(choices)
+```
+
+ - `choices` - A numeric table containing the possible choices
+
## License
All code except otherwise noted is licensed under the term of GPL-3.