vim.g.mapleader = "½" --FILEHANDLING vim.api.nvim_set_keymap('n', '', "lua require('telescope.builtin').find_files()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('telescope.builtin').buffers()", { noremap = true, silent = true } ) --TESTING vim.api.nvim_set_keymap('n', '', "lua require('neotest').output.open({enter=true, auto_close=true})", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('neotest').summary.toggle()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('neotest').run.run()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('neotest').run.run(vim.fn.expand('%'))", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('neotest').run.run('tests/')", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('coverage').load(true)", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('coverage').summary()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('coverage').toggle()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "RestNvim", { noremap = true, silent = true } ) --DEBUGGING vim.api.nvim_set_keymap('n', '', "lua require('dap').toggle_breakpoint()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('dapui').toggle()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('dap').continue()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('dap-python').test_method()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('dap').step_over()", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('n', '', "lua require('dap').step_into()", { noremap = true, silent = true } ) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts) vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) vim.keymap.set('n', '', '', { noremap = true, silent = true }) vim.keymap.set('n', '', '', { noremap = true, silent = true }) vim.keymap.set('n', '', '', { noremap = true, silent = true }) vim.keymap.set('n', '', '', { noremap = true, silent = true }) vim.keymap.set("n", "", "TroubleToggle document_diagnostics", {silent = true, noremap = true} ) --TERMINAL BINDINGS vim.api.nvim_set_keymap('n', '', "ToggleTerm size=60", { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', "ToggleTermToggleAll", { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '', "ToggleTermToggleAll", { noremap = true, silent = true }) vim.keymap.set('t', '', "", { noremap = true, silent = true } ) vim.api.nvim_set_keymap('t', '', "wincmd h", { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '', "wincmd j", { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '', "wincmd k", { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '', "wincmd l", { noremap = true, silent = true }) -- WHICH KEY local wk = require("which-key") wk.register({ b = { name = "+Buffer", c = { "w | %bd | e#", "Close All But this Buffer" } }, g = { name = "+Git", h = { name = "+Github", c = { name = "+Commits", c = { "GHCloseCommit", "Close" }, e = { "GHExpandCommit", "Expand" }, o = { "GHOpenToCommit", "Open To" }, p = { "GHPopOutCommit", "Pop Out" }, z = { "GHCollapseCommit", "Collapse" }, }, i = { name = "+Issues", p = { "GHPreviewIssue", "Preview" }, }, l = { name = "+Litee", t = { "LTPanel", "Toggle Panel" }, }, r = { name = "+Review", b = { "GHStartReview", "Begin" }, c = { "GHCloseReview", "Close" }, d = { "GHDeleteReview", "Delete" }, e = { "GHExpandReview", "Expand" }, s = { "GHSubmitReview", "Submit" }, z = { "GHCollapseReview", "Collapse" }, }, p = { name = "+Pull Request", c = { "GHClosePR", "Close" }, d = { "GHPRDetails", "Details" }, e = { "GHExpandPR", "Expand" }, o = { "GHOpenPR", "Open" }, p = { "GHPopOutPR", "PopOut" }, r = { "GHRefreshPR", "Refresh" }, t = { "GHOpenToPR", "Open To" }, z = { "GHCollapsePR", "Collapse" }, }, t = { name = "+Threads", c = { "GHCreateThread", "Create" }, n = { "GHNextThread", "Next" }, t = { "GHToggleThread", "Toggle" }, }, }, }, }, { prefix = "" })