mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Improve comment in keymaps.lua on how to add keymap in lazyvim style
This is the file that users are directed to in `lua/config/keymaps.lua`. ``` -- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here ``` So it would be much better to explicitly guide them to use the which-key API.
This commit is contained in:
parent
ec5981dfb1
commit
789bbded06
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
-- DO NOT USE `LazyVim.safe_keymap_set` IN YOUR OWN CONFIG!!
|
-- DO NOT USE `LazyVim.safe_keymap_set` IN YOUR OWN CONFIG!!
|
||||||
-- use `vim.keymap.set` instead
|
-- use `vim.keymap.set` instead
|
||||||
|
-- or use local `wk = require("which-key")` and `wk.add`, to utilise the popup from the which-key plugin.
|
||||||
|
-- for more information, go to https://github.com/folke/which-key.nvim
|
||||||
local map = LazyVim.safe_keymap_set
|
local map = LazyVim.safe_keymap_set
|
||||||
|
|
||||||
-- better up/down
|
-- better up/down
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue