refactor config to define all keybinds in a single file
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user