diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | bindings.lua | 8 |
2 files changed, 10 insertions, 0 deletions
@@ -71,6 +71,8 @@ Alternatively, a plugin manager like [vis-plug](https://github.com/erf/vis-plug) < D> - jump to type definition <C-t> - go back in the jump history < e> - show diagnostics of current line + < n> - jump to the next available diagnostic + < N> - jump to the previous available diagnostic <K> - hover over current position Normal and Insert mode: <C- > - get completions diff --git a/bindings.lua b/bindings.lua index a71c970..06acf26 100644 --- a/bindings.lua +++ b/bindings.lua @@ -66,6 +66,14 @@ vis:map(vis.modes.NORMAL, ' e', function() vis:command('lspc-show-diagnostics') end, 'lspc: show diagnostic of current line') +vis:map(vis.modes.NORMAL, ' n', function() + vis:command('lspc-next-diagnostic') +end, 'lspc: jump to the next available diagnostic') + +vis:map(vis.modes.NORMAL, ' N', function() + vis:command('lspc-prev-diagnostic') +end, 'lspc: jump to the previous available diagnostic') + vis:map(vis.modes.NORMAL, 'K', function() vis:command('lspc-hover') end, 'lspc: hover over current position') |
