---@diagnostic disable: undefined-global return { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' opts = { delay = 0, icons = { mappings = vim.g.have_nerd_font, keys = vim.g.have_nerd_font and {} or { Up = ' ', Down = ' ', Left = ' ', Right = ' ', C = ' ', M = ' ', D = ' ', S = ' ', CR = ' ', Esc = ' ', ScrollWheelDown = ' ', ScrollWheelUp = ' ', NL = ' ', BS = ' ', Space = ' ', Tab = ' ', F1 = '', F2 = '', F3 = '', F4 = '', F5 = '', F6 = '', F7 = '', F8 = '', F9 = '', F10 = '', F11 = '', F12 = '', }, }, -- Document existing key chains spec = { { 'c', group = '[C]ode', desc = { a = 'Code [A]ction', f = '[F]ormat buffer', }}, { 'd', group = '[D]ocument', desc = { x = 'Document [D]iagnostics', s = 'Document [S]ymbols', [''] = 'Show diagnostic under cursor', }}, { 's', group = '[S]earch', desc = { h = '[H]elp', k = '[K]eymaps', f = '[F]iles', s = '[S]elect Telescope', w = 'Current [W]ord', g = '[G]rep', d = '[D]iagnostics', r = '[R]esume last search', ['/'] = 'Search in open files', n = '[N]eovim config files', }}, { 'l', group = '[L]SP/Language' }, { 'm', group = '[M]emory/Sessions' }, { 'D', group = '[D]atabase' }, { 't', group = '[T]roubleshooting', desc = { d = 'Search all [D]iagnostics', l = 'Diagnostics in [L]ocation list', t = 'Diagnostic details in floa[T]', }}, { 'w', desc = 'Save file' }, { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, { 'g', group = '[G]it', desc = { s = 'Status', }}, { 'f', group = '[F]ile Explorer', desc = { e = 'Toggle explorer', f = 'Focus explorer', }}, { 'n', group = '[N]otifications', desc = { n = 'Toggle notifications', h = 'Notification [H]istory', c = '[C]lear notifications', }}, { 'p', group = 'Debug/[P]rofile', desc = { b = 'Toggle [B]reakpoint', c = '[C]ontinue debugging', n = 'Step over ([N]ext)', i = 'Step [I]nto', o = 'Step [O]ut', r = 'Open [R]EPL', l = 'Run [L]ast debug session', x = 'Toggle debug UI', }}, { 'b', group = '[B]uffer', desc = { p = '[P]revious', n = '[N]ext', d = '[D]elete', D = 'Force [D]elete', }}, { 'q', desc = 'Open diagnostic [Q]uickfix list' }, { 'e', desc = 'Toggle file [E]xplorer' }, { 'o', desc = 'F[o]cus file explorer' }, { 'x', desc = 'Close buffer' }, { 'X', desc = 'Force close buffer' }, { '/', desc = 'Search in current buffer' }, { '', desc = 'Find buffers' }, { '', desc = 'Search text in all files' }, }, }, }