diff --git a/config/nvim/lua/aleidk/plugins/which-key.lua b/config/nvim/lua/aleidk/plugins/which-key.lua new file mode 100644 index 0000000..664bf00 --- /dev/null +++ b/config/nvim/lua/aleidk/plugins/which-key.lua @@ -0,0 +1,26 @@ +return { + "folke/which-key.nvim", + event = "VeryLazy", + opts = { + plugins = { spelling = true }, + defaults = { + mode = { "n", "v" }, + ["g"] = { name = "+goto" }, + ["gz"] = { name = "+surround" }, + ["b"] = { name = "+buffer" }, + ["c"] = { name = "+comments" }, + ["f"] = { name = "+file/find" }, + ["g"] = { name = "+git" }, + ["q"] = { name = "+quit/session" }, + ["s"] = { name = "+search" }, + ["u"] = { name = "+ui" }, + ["w"] = { name = "+windows" }, + ["l"] = { name = "+diagnostics/quickfix" }, + }, + }, + config = function(_, opts) + local wk = require("which-key") + wk.setup(opts) + wk.register(opts.defaults) + end, +}