local K = {} --[[ Leader ]] vim.g.mapleader = ' ' --[[ Indentation ]] vim.keymap.set('n', '', '>>') vim.keymap.set('n', '', '<<') --[[ Focus Shade ]] K.FOCUS_SHADE = { UP = { shortcut = '', }, DOWN = { shortcut = '', }, } --[[ Git ]] K.GIT = { OPEN = { mode = 'n', shortcut = 'go', description = 'Open Git', }, HUNK = { mode = 'n', shortcut = 'gh', description = 'Toggle Inline Git Diff', }, BLAME = { mode = 'n', shortcut = 'gb', description = 'Toggle Inline Git Blame', }, } --[[ Terminal ]] K.TOGGLE_TERMINAL = { mode = { 'n', 't' }, shortcut = '', description = 'Toggle Terminal', } --[[ Ollam ]] K.OLLAMA = { mode = 'n', shortcut = 'op', description = 'Ollama Prompt', } --[[ Snippets ]] K.SNIPPETS = { ACCEPT_OR_JUMP = { mode = { 'i', 's' }, shortcut = '', }, JUMP_BACKWARDS = { mode = { 'i', 's' }, shortcut = '', }, } --[[ Search ]] K.SEARCH = { FIND_FILE = { mode = 'n', shortcut = 'ff', description = 'Find File', }, FUZZY_FIND = { mode = 'n', shortcut = 'fz', description = 'Fuzzy File', }, GLOBAL_FIND_FILE = { mode = 'n', shortcut = 'gff', description = 'Global Find File', }, GLOBAL_FUZZY_FIND = { mode = 'n', shortcut = 'gfz', description = 'Global Fuzzy File', }, } --[[ Debugging ]] K.DEBUGGING = { TOGGLE_UI = { mode = 'n', shortcut = 'dt', description = 'Toggle Debugger UI', }, TOGGLE_BREAKPOINT = { mode = 'n', shortcut = 'db', description = 'Toggle Breakpoint', }, CONTINUE = { mode = 'n', shortcut = 'dc', description = 'Debugger Continue', }, TERMINATE = { mode = 'n', shortcut = 'dx', description = 'Debugger Terminate', }, STEP_OVER = { mode = 'n', shortcut = 'ds', description = 'Debugger Step Over', }, } --[[ File Tree ]] K.FILE_TREE = { TOGGLE = { mode = 'n', shortcut = 'ft', description = 'Toggle File Tree', }, SHOW_OPEN = { mode = 'n', shortcut = 'fo', description = 'Show Open Files', }, } --[[ CODE ]] K.CODE = { SHOW_DEFINITION = { mode = 'n', shortcut = 'cd', description = 'Show Code Definition', }, GOTO_DEFINITION = { mode = 'n', shortcut = 'cgd', description = 'Go to Definition', }, PEEK_DEFINITION = { mode = 'n', shortcut = 'cpd', description = 'Peek Code Definition', }, GOTO_REFERENCES = { mode = 'n', shortcut = 'cgr', description = 'Go to References', }, ACTIONS = { mode = 'n', shortcut = 'ca', description = 'Do Code Actions', }, FORMAT = { mode = 'n', shortcut = 'cf', description = 'Format Code', }, RENAME = { mode = 'n', shortcut = 'cr', description = 'Rename Variable', }, } return K