add links to testing frameworks

pull/60/head
Timothée Sterle 3 years ago
parent affeb1f4e0
commit b469b7cd84
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

@ -986,6 +986,11 @@ You can debug Lua code running in a separate Neovim instance with [jbyuki/one-sm
The plugin uses the [Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/). Connecting to a debug adapter requires a DAP client like [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap/) or [puremourning/vimspector](https://github.com/puremourning/vimspector/).
### Testing Lua code
- [plenary.nvim: test harness](https://github.com/nvim-lua/plenary.nvim/#plenarytest_harness)
- [notomo/vusted](https://github.com/notomo/vusted)
## Miscellaneous
### vim.loop

@ -944,32 +944,19 @@ Let's start with `vim.api.nvim_set_keymap()` and
The first argument passed to the function is a string containing the
name of the mode for which the mapping will take effect:
| String value | Help page | Affected modes
| Vimscript equivalent |
| ---------------------- | ------------- |
---------------------------------------- | -------------------- |
| `''` (an empty string) | `mapmode-nvo` | Normal, Visual, Select,
Operator-pending | `:map` |
| `'n'` | `mapmode-n` | Normal
| `:nmap` |
| `'v'` | `mapmode-v` | Visual and Select
| `:vmap` |
| `'s'` | `mapmode-s` | Select
| `:smap` |
| `'x'` | `mapmode-x` | Visual
| `:xmap` |
| `'o'` | `mapmode-o` | Operator-pending
| `:omap` |
| `'!'` | `mapmode-ic` | Insert and Command-line
| `:map!` |
| `'i'` | `mapmode-i` | Insert
| `:imap` |
| `'l'` | `mapmode-l` | Insert, Command-line, Lang-Arg
| `:lmap` |
| `'c'` | `mapmode-c` | Command-line
| `:cmap` |
| `'t'` | `mapmode-t` | Terminal
| `:tmap` |
| String value | Help page | Affected modes | Vimscript equivalent |
| ---------------------- | ------------- | ---------------------------------------- | -------------------- |
| `''` (an empty string) | `mapmode-nvo` | Normal, Visual, Select, Operator-pending | `:map` |
| `'n'` | `mapmode-n` | Normal | `:nmap` |
| `'v'` | `mapmode-v` | Visual and Select | `:vmap` |
| `'s'` | `mapmode-s` | Select | `:smap` |
| `'x'` | `mapmode-x` | Visual | `:xmap` |
| `'o'` | `mapmode-o` | Operator-pending | `:omap` |
| `'!'` | `mapmode-ic` | Insert and Command-line | `:map!` |
| `'i'` | `mapmode-i` | Insert | `:imap` |
| `'l'` | `mapmode-l` | Insert, Command-line, Lang-Arg | `:lmap` |
| `'c'` | `mapmode-c` | Command-line | `:cmap` |
| `'t'` | `mapmode-t` | Terminal | `:tmap` |
The second argument is a string containing the left-hand side of the
mapping (the key or set of keys that trigger the command defined in the
@ -1240,6 +1227,12 @@ a debug adapter requires a DAP client like mfussenegger/nvim-dap:
https://github.com/mfussenegger/nvim-dap/ or puremourning/vimspector:
https://github.com/puremourning/vimspector/ .
Testing Lua code~
- plenary.nvim: test harness:
https://github.com/nvim-lua/plenary.nvim/#plenarytest_harness
- notomo/vusted: https://github.com/notomo/vusted
==============================================================================
MISCELLANEOUS
*luaguide-miscellaneous*

Loading…
Cancel
Save