debug since deprecated conform setting
This commit is contained in:
@@ -25,12 +25,12 @@ mason_tool_installer.setup({
|
||||
|
||||
conform.setup({
|
||||
formatters_by_ft = {
|
||||
yml = { "ansible-lint" },
|
||||
yaml = { "ansible-lint" },
|
||||
},
|
||||
format_on_save = {
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
})
|
||||
|
||||
@@ -38,7 +38,7 @@ vim.keymap.set({ "n", "v" }, "<leader>lf", function()
|
||||
conform.format({
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
})
|
||||
end, { desc = "Format" })
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ conform.setup({
|
||||
format_on_save = {
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
})
|
||||
|
||||
@@ -38,7 +38,7 @@ vim.keymap.set({ "n", "v" }, "<leader>lf", function()
|
||||
conform.format({
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
})
|
||||
end, { desc = "Format" })
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ conform.setup({
|
||||
format_on_save = {
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
})
|
||||
|
||||
@@ -54,7 +54,7 @@ vim.keymap.set({ "n", "v" }, "<leader>lf", function()
|
||||
conform.format({
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
})
|
||||
end, { desc = "Format" })
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ conform.setup({
|
||||
format_on_save = {
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
},
|
||||
})
|
||||
|
||||
@@ -44,7 +44,7 @@ vim.keymap.set({ "n", "v" }, "<leader>lf", function()
|
||||
conform.format({
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback"
|
||||
})
|
||||
end, { desc = "Format" })
|
||||
|
||||
|
||||
@@ -49,13 +49,14 @@ mason_tool_installer.setup({
|
||||
|
||||
conform.setup({
|
||||
formatters_by_ft = {
|
||||
javascript = { { "prettierd", "prettier" } },
|
||||
json = { { "prettierd", "prettier" } },
|
||||
javascript = { "prettierd", "prettier" },
|
||||
json = { "prettierd", "prettier" },
|
||||
},
|
||||
format_on_save = {
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
stop_after_first = true
|
||||
},
|
||||
})
|
||||
|
||||
@@ -63,7 +64,7 @@ vim.keymap.set({ "n", "v" }, "<leader>lf", function()
|
||||
conform.format({
|
||||
async = false,
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
lsp_format = "fallback",
|
||||
})
|
||||
end, { desc = "Format" })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user