From 8576ccbb3548102c112900cc8430147017b38b91 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 13 Jul 2021 11:36:21 +0200 Subject: update README add new bindings, commands and configuration options --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb548dd..b93e763 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ vis-lspc currently supports: * `textDocument/typeDefinition` * `textDocument/implementation` * `textDocument/hover` +* `[textDocument/rename]` * `[Diagnostics]` ## Whats not working @@ -54,8 +55,15 @@ vis-lspc is in a early state, but if you are brave there are some default key bi Normal mode: - start a language server for win.syntax - open win.file with a running language server - - jump to the definition of the symbol under the main cursor + | - jump to the definition of the symbol under the main cursor + - jump to declaration + - jump to definition + - jump to implementation + - show references + < D> - jump to type definition - go back in the jump history + < e> - show diagnostics of current line + - hover over current position Normal and Insert mode: - get completions @@ -80,6 +88,13 @@ vis-lspc is in a early state, but if you are brave there are some default key bi lspc-back - navigate back in the goto history + # workspace edits + lspc-rename - rename the identifier under the cursor to + + # development support + lspc-hover - hover over the current line + lspc-show-diagnostics - show the available diagnostics of the current line + ### Available configuration fields The module table returned by `require('plugins/vis-lspc')` can be use to configure @@ -92,7 +107,10 @@ Available fields are: * `log_file = 'vis-lspc.log'` - file vis-lspc writes all log messages to * `autostart = true` - try to start a language server in WIN_OPEN * `menu_cmd = 'fzf' or 'vis-menu'` - program to prompt for user choices +* `confirm_cmd = 'vis-menu'` - program to prompt for user confirmation * `ls_map` - a table mapping vis syntax names to language server configurations +* `highlight_diagnostics = false` - highlight available diagnostics +* `diagnostic_style = 'back:#e3514f'` - style used to highlight diagnostics #### Configure your own Language Server -- cgit v1.2.3