update: add formatter for cpp and python

clangd as formatter for cpp and isort, black, and autopep8 for python
This commit is contained in:
Pascal Popp 2024-07-30 16:56:21 +02:00
parent 2ddc56afa2
commit b5c9c63748
1 changed files with 2 additions and 1 deletions

View File

@ -663,8 +663,9 @@ require('lazy').setup({
end,
formatters_by_ft = {
lua = { 'stylua' },
cpp = { 'clangd' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
python = { 'isort', 'black', 'autopep8' },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },