From b5c9c637489b78111e9d9727f10adc3d4270737f Mon Sep 17 00:00:00 2001 From: Pascal Popp Date: Tue, 30 Jul 2024 16:56:21 +0200 Subject: [PATCH] update: add formatter for cpp and python clangd as formatter for cpp and isort, black, and autopep8 for python --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b90cdf9f..f3111fb9 100644 --- a/init.lua +++ b/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 },