up
This commit is contained in:
@@ -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 {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user