dotfiles/.dotfiles/nvchad/custom/mappings.lua
2024-01-31 11:26:31 +01:00

34 lines
526 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",
}
},
v = {
[">"] = { ">gv", "indent"},
},
}
M.lsp = {
n = {
["<leader>ts"] = {":Telescope lsp_document_symbols<CR>", "Find symbols in document"}
}
}
M.neogit = {
n = {
["<Leader>gs"] = {":Neogit<CR>", "Open Neogit"}
}
}
return M