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