summaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/format.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nvim/lua/plugins/format.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua
deleted file mode 100644
index e226ab6..0000000
--- a/nvim/lua/plugins/format.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local conform = require("conform")
-
-conform.setup({
- formatters_by_ft = {
- javascript = { "prettier" },
- typescript = { "prettier" },
- javascriptreact = { "prettier" },
- typescriptreact = { "prettier" },
- css = { "prettier" },
- html = { "prettier" },
- json = { "prettier" },
- yaml = { "prettier" },
- markdown = { "prettier" },
- graphql = { "prettier" },
- lua = { "stylua" },
- python = { "isort", "black" },
- go = { "gofmt" },
- },
- format_on_save = {
- lsp_fallback = true,
- async = false,
- timeout_ms = 500,
- },
-})
-
-vim.keymap.set({ "n", "v" }, "<leader>mp", function()
- conform.format({ lsp_fallback = true, async = false, timeout_ms = 500 })
-end, { desc = "Format file or range (in visual mode)" })