aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichiel van den Heuvel <michielvdnheuvel@gmail.com>2023-08-27 16:20:46 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-08-28 20:02:46 +0200
commit795beac9e6a98794fd8320bd2317e01ed329148b (patch)
tree6b7d4fda3b4b655c64976a09f468710549696634 /README.md
parent5b293adcda95896291dc7943d12c3e34906657ab (diff)
downloadvis-lspc-795beac9e6a98794fd8320bd2317e01ed329148b.tar.gz
vis-lspc-795beac9e6a98794fd8320bd2317e01ed329148b.zip
Add function to open a file to lspc object
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index ffd98d6..749673f 100644
--- a/README.md
+++ b/README.md
@@ -170,6 +170,25 @@ ls_map.lua = {
Language servers configured in vis-lspc can be found in `supported_servers.lua`.
+### Extensibility
+
+The returned module table also includes functions you can use in your own vis
+configuration.
+
+#### `lspc.lspc_open`
+
+Navigate between or in files, while remembering the current position in a runtime history.
+
+```lua
+lspc_open(win, path, line, col, cmd)
+```
+
+ - `win` - a window in which to open the file
+ - `path` - the path to the file to open
+ - `line` - the line to open. (`nil` for no position within the file).
+ - `col` - same as `line`, but for the column.
+ - `cmd` - vis command to open the file. (`e` or `o`, see vis commands)
+
## License
All code except otherwise noted is licensed under the term of GPL-3.