diff options
author | max397574 <[email protected]> | 2021-12-17 16:47:42 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-12-17 16:47:42 +0100 |
commit | 29a2dd38781c62b0553455c2812d5f22f066a6e9 (patch) | |
tree | a184265721b2e672e86fed1b30ad3baa5ed40214 /readme.md | |
parent | 5246e521c42ca64edd5e6a4225de75d77c03a7ab (diff) |
docs(readme): added section about user mappings
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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`. |