update: add formatter for cpp and python
clangd as formatter for cpp and isort, black, and autopep8 for python
This commit is contained in:
parent
2ddc56afa2
commit
b5c9c63748
3
init.lua
3
init.lua
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue