refactor config to define all keybinds in a single file

This commit is contained in:
2024-11-03 17:53:39 -05:00
parent 91ef397420
commit 37969ca98e
11 changed files with 180 additions and 156 deletions
+1 -8
View File
@@ -1,6 +1,7 @@
return {
"stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function()
local conform = require "conform"
@@ -27,13 +28,5 @@ return {
timeout_ms = 1000,
},
}
vim.keymap.set({ "n", "v" }, "<leader>mp", function()
conform.format {
lsp_fallback = true,
async = false,
timeout_ms = 1000,
}
end, { desc = "Format file or range (in visual mode)" })
end,
}