dotfiles/nvim/lua/custom/mappings.lua
2024-03-02 20:20:51 -05:00

54 lines
940 B
Lua

---@type MappingsTable
local M = {}
M.general = {
n = {
[";"] = { ":", "enter command mode", opts = { nowait = true } },
-- format with conform
["<leader>fm"] = {
function()
require("conform").format()
end,
"formatting",
},
["<leader>tt"] = {
function()
require("base46").toggle_transparency()
end,
"toggle transparency"
},
["<leader>te"] = {
function()
require("base46").toggle_theme()
end,
"toggle theme"
},
["[t"] = { ":tabprevious<CR>", "previous tab" },
["]t"] = { ":tabnext<CR>", "next tab" },
["lg"] = {
function()
require("custom.terminals.lazygit").toggle()
end,
"Lazy Git"
},
["k9"] = {
function()
require("custom.terminals.k9s").toggle()
end,
"K9S"
},
},
v = {
[">"] = { ">gv", "indent"},
},
}
-- more keybinds!
return M