aboutsummaryrefslogtreecommitdiff
path: root/nvim/custom/mappings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/custom/mappings.lua')
-rw-r--r--nvim/custom/mappings.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/nvim/custom/mappings.lua b/nvim/custom/mappings.lua
new file mode 100644
index 0000000..f7690a1
--- /dev/null
+++ b/nvim/custom/mappings.lua
@@ -0,0 +1,28 @@
+---@type MappingsTable
+local M = {}
+
+M.general = {
+ n = {
+ [";"] = { ":", "enter command mode", opts = { nowait = true } },
+
+ -- format with conform
+ ["<leader>fm"] = {
+ function()
+ require("conform").format({
+ lsp_fallback = true,
+ async = false,
+ timeout_ms = 500,
+ })
+ end,
+ "formatting",
+ }
+
+ },
+ v = {
+ [">"] = { ">gv", "indent"},
+ },
+}
+
+-- more keybinds!
+
+return M