Add some options to which-key

This commit is contained in:
Graham McMillan 2024-07-16 10:50:38 +02:00
parent 8a31b832f4
commit 16ef6ff851
1 changed files with 13 additions and 1 deletions

View File

@ -280,7 +280,19 @@ require('lazy').setup({
'folke/which-key.nvim', 'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter' event = 'VimEnter', -- Sets the loading event to 'VimEnter'
config = function() -- This is the function that runs, AFTER loading config = function() -- This is the function that runs, AFTER loading
require('which-key').setup() require('which-key').setup {
plugins = {
marks = true,
registers = true,
presets = {
operators = true,
motions = true,
windows = true,
nav = true,
},
},
}
local wk = require 'which-key' local wk = require 'which-key'
wk.add { wk.add {