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:
Junha Park 2025-04-23 02:05:51 +08:00
parent ec5981dfb1
commit 789bbded06

View file

@ -2,6 +2,8 @@
-- DO NOT USE `LazyVim.safe_keymap_set` IN YOUR OWN CONFIG!!
-- 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
-- better up/down