12345678910111213141516171819202122232425262728293031 |
- -- 快捷键提示
- return {
- "folke/which-key.nvim",
- event = "VeryLazy",
- opts = {
- plugins = { spelling = true },
- defaults = {
- mode = { "n", "v" },
- ["g"] = { name = "+goto" },
- ["gs"] = { name = "+surround" },
- ["]"] = { name = "+next" },
- ["["] = { name = "+prev" },
- ["<leader><tab>"] = { name = "+tabs" },
- ["<leader>b"] = { name = "+buffer" },
- ["<leader>c"] = { name = "+code" },
- ["<leader>f"] = { name = "+file/find" },
- ["<leader>g"] = { name = "+git" },
- ["<leader>gh"] = { name = "+hunks" },
- ["<leader>q"] = { name = "+quit/session" },
- ["<leader>s"] = { name = "+search" },
- ["<leader>u"] = { name = "+ui" },
- ["<leader>w"] = { name = "+windows" },
- ["<leader>x"] = { name = "+diagnostics/quickfix" },
- },
- },
- config = function(_, opts)
- local wk = require("which-key")
- wk.setup(opts)
- wk.register(opts.defaults)
- end,
- }
|