my dotfiles for arch
at main 53 lines 1.4 kB view raw
1return { 2 "folke/which-key.nvim", 3 enabled = false, 4 event = "VimEnter", -- Sets the loading event to 'VimEnter' 5 opts = { 6 -- delay between pressing a key and opening which-key (milliseconds) 7 -- this setting is independent of vim.o.timeoutlen 8 delay = 0, 9 icons = { 10 -- set icon mappings to true if you have a Nerd Font 11 mappings = vim.g.have_nerd_font, 12 -- If you are using a Nerd Font: set icons.keys to an empty table which will use the 13 -- default which-key.nvim defined Nerd Font icons, otherwise define a string table 14 keys = vim.g.have_nerd_font and {} or { 15 Up = "<Up> ", 16 Down = "<Down> ", 17 Left = "<Left> ", 18 Right = "<Right> ", 19 C = "<C-…> ", 20 M = "<M-…> ", 21 D = "<D-…> ", 22 S = "<S-…> ", 23 CR = "<CR> ", 24 Esc = "<Esc> ", 25 ScrollWheelDown = "<ScrollWheelDown> ", 26 ScrollWheelUp = "<ScrollWheelUp> ", 27 NL = "<NL> ", 28 BS = "<BS> ", 29 Space = "<Space> ", 30 Tab = "<Tab> ", 31 F1 = "<F1>", 32 F2 = "<F2>", 33 F3 = "<F3>", 34 F4 = "<F4>", 35 F5 = "<F5>", 36 F6 = "<F6>", 37 F7 = "<F7>", 38 F8 = "<F8>", 39 F9 = "<F9>", 40 F10 = "<F10>", 41 F11 = "<F11>", 42 F12 = "<F12>", 43 }, 44 }, 45 46 -- Document existing key chains 47 spec = { 48 { "<leader>s", group = "[S]earch" }, 49 { "<leader>t", group = "[T]oggle" }, 50 { "<leader>h", group = "Git [H]unk", mode = { "n", "v" } }, 51 }, 52 }, 53}