This commit is contained in:
2025-08-15 19:33:16 +02:00
parent be77967e94
commit 6c3434aceb
21 changed files with 280 additions and 97 deletions

View File

@@ -7,14 +7,14 @@ return {
event = { 'BufWritePre' },
cmd = { 'ConformInfo' },
keys = {
{
'<leader>bf',
function()
require('conform').format { async = true, lsp_format = 'fallback' }
end,
mode = '',
desc = '[F]ormat [B]uffer',
},
-- {
-- '<leader>bf',
-- function()
-- require('conform').format { async = true, lsp_format = 'fallback' }
-- end,
-- mode = '',
-- desc = '[F]ormat [B]uffer',
-- },
},
opts = {
notify_on_error = false,
@@ -35,7 +35,7 @@ return {
formatters_by_ft = {
lua = { 'stylua' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
python = { 'isort', 'black' },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },
@@ -43,4 +43,3 @@ return {
},
},
}