@@ -1,5 +1,8 @@
11# Keymap
22
3+- Mappings marked (**LSP**) require an active language server for the file.
4+- Mappings marked (**TS**) require a tree-sitter grammar for the filetype.
5+
36## Normal mode
47
58### Movement
@@ -64,7 +67,7 @@
6467| `"` `<reg>` | Select a register to yank to or paste from | `select_register` |
6568| `>` | Indent selection | `indent` |
6669| `<` | Unindent selection | `unindent` |
67−| `=` | Format selection | `format_selections` |
70+| `=` | Format selection (**LSP**) | `format_selections` |
6871| `d` | Delete selection | `delete_selection` |
6972| `c` | Change selection (delete and enter insert mode) | `change_selection` |
7073
@@ -98,7 +101,7 @@
98101| `%` | Select entire file | `select_all` |
99102| `x` | Select current line, if already selected, extend to next line | `extend_line` |
100103| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
101−| | Expand selection to parent syntax node TODO: pick a key | `expand_selection` |
104+| | Expand selection to parent syntax node TODO: pick a key (**TS**) | `expand_selection` |
102105| `J` | Join lines inside selection | `join_selections` |
103106| `K` | Keep selections matching the regex | `keep_selections` |
104107| `Alt-K` | Remove selections matching the regex | `remove_selections` |
@@ -143,8 +146,7 @@ over text and not actively editing it).
143146
144147#### Goto mode
145148
146−Jumps to various locations. Mappings marked (**LSP**) require an
147−active language server for the file to work.
149+Jumps to various locations.
148150
149151| Key | Description | Command |
150152| ----- | ----------- | ------- |
@@ -172,7 +174,7 @@ and [textobject](./usage.md#textobject) usage.
172174
173175| Key | Description | Command |
174176| ----- | ----------- | ------- |
175−| `m` | Goto matching bracket | `match_brackets` |
177+| `m` | Goto matching bracket (**TS**) | `match_brackets` |
176178| `s` `<char>` | Surround current selection with `<char>` | `surround_add` |
177179| `r` `<from><to>` | Replace surround character `<from>` with `<to>` | `surround_replace` |
178180| `d` `<char>` | Delete surround character `<char>` | `surround_delete` |
@@ -199,18 +201,17 @@ This layer is similar to vim keybindings as kakoune does not support window.
199201
200202#### Space mode
201203
202−This layer is a kludge of mappings, mostly pickers. Mappings marked
203−(**LSP**) require an active language server for the file to work.
204+This layer is a kludge of mappings, mostly pickers.
204205
205206
206207| Key | Description | Command |
207208| ----- | ----------- | ------- |
208209| `f` | Open file picker | `file_picker` |
209210| `b` | Open buffer picker | `buffer_picker` |
210−| `k` | Show documentation for item under cursor (**LSP**) | `hover` |
211−| `s` | Open document symbol picker (**LSP**) | `symbol_picker` |
212−| `r` | Rename symbol (**LSP**) | `rename_symbol` |
213−| `a` | Apply code action (**LSP**) | `code_action` |
211+| `k` | Show documentation for item under cursor (**LSP**) | `hover` |
212+| `s` | Open document symbol picker (**LSP**) | `symbol_picker` |
213+| `r` | Rename symbol (**LSP**) | `rename_symbol` |
214+| `a` | Apply code action (**LSP**) | `code_action` |
214215| `'` | Open last fuzzy picker | `last_picker` |
215216| `w` | Enter [window mode](#window-mode) | N/A |
216217| `p` | Paste system clipboard after selections | `paste_clipboard_after` |
@@ -226,14 +227,14 @@ This layer is a kludge of mappings, mostly pickers. Mappings marked
226227
227228Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaired).
228229
229−| Key | Description | Command |
230−| ----- | ----------- | ------- |
231−| `[d` | Go to previous diagnostic | `goto_prev_diag` |
232−| `]d` | Go to next diagnostic | `goto_next_diag` |
233−| `[D` | Go to first diagnostic in document | `goto_first_diag` |
234−| `]D` | Go to last diagnostic in document | `goto_last_diag` |
235−| `[space` | Add newline above | `add_newline_above` |
236−| `]space` | Add newline below | `add_newline_below` |
230+| Key | Description | Command |
231+| ----- | ----------- | ------- |
232+| `[d` | Go to previous diagnostic (**LSP**) | `goto_prev_diag` |
233+| `]d` | Go to next diagnostic (**LSP**) | `goto_next_diag` |
234+| `[D` | Go to first diagnostic in document (**LSP**) | `goto_first_diag` |
235+| `]D` | Go to last diagnostic in document (**LSP**) | `goto_last_diag` |
236+| `[space` | Add newline above | `add_newline_above` |
237+| `]space` | Add newline below | `add_newline_below` |
237238
238239## Insert Mode
239240