summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/formatting.lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-05-23 01:06:50 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-05-23 01:06:50 -0400
commit1c0ac26114e249548dfdd270a07bc2336a37b6e2 (patch)
tree67a9a69b8de26b6ecb9008a0d992e865d1fc12c2 /lua/ben/plugins/formatting.lua
parent796db1e83d41d25a277c46c968a168702c1f3eb8 (diff)
Massive simplification
Diffstat (limited to 'lua/ben/plugins/formatting.lua')
-rw-r--r--lua/ben/plugins/formatting.lua38
1 files changed, 0 insertions, 38 deletions
diff --git a/lua/ben/plugins/formatting.lua b/lua/ben/plugins/formatting.lua
deleted file mode 100644
index 22ddb17..0000000
--- a/lua/ben/plugins/formatting.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-return {
- "stevearc/conform.nvim",
- event = { "BufReadPre", "BufNewFile" },
- config = function()
- local conform = require("conform")
-
- conform.setup({
- formatters_by_ft = {
- javascript = { "prettier" },
- html = { "prettier" },
- css = { "prettier" },
- json = { "prettier" },
- markdown = { "prettier" },
- bib = { "bibtex_tidy" },
- go = { "goimports", "gci", "golines" },
- sh = { "shfmt" },
- tex = { "latexindent" },
- sql = { "sql_formatter" },
- python = { "isort", "black" },
- yaml = { "yamlfix" },
- lua = { "stylua" },
- },
-
- format_on_save = {
- lsp_fallback = true,
- async = false,
- timeout_ms = 300,
- },
- })
- vim.keymap.set({ "n", "v" }, "<leader>mp", function()
- conform.format({
- lsp_fallback = true,
- async = false,
- timeout_ms = 300,
- })
- end, { desc = "Format file or range" })
- end,
-}