aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readme.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index c93f020..25b481f 100644
--- a/readme.md
+++ b/readme.md
@@ -121,6 +121,17 @@ section = {
}
```
+### User Mappings
+You can easily add your own mappings with a function.
+You just have to provide a table with keys, command pairs like this:
+```lua
+require"startup".create_mappings({
+ ["<leader>ff"]="<cmd>Telescope find_files<CR>",
+ ["<leader>lg"]="<cmd>Telescope live_grep<CR>"
+})
+```
+Those mappings will automatically be added to the help.
+
### Buildingblocks
You can use some functions from `lua/startup/functions.lua`.