Fix black / isort

This commit is contained in:
Jan Hamal Dvořák 2024-07-19 18:51:47 +02:00
parent a26f520fc7
commit 2bf8852c9e
Signed by: mordae
GPG key ID: 1782BCC23EE007B9

View file

@ -2,7 +2,7 @@ require('nvim-format-buffer').setup({
verbose = false,
format_rules = {
{ pattern = { '*.c', '*.h' }, command = 'clang-format' },
{ pattern = { '*.py', '*.pyi' }, command = 'black -q --stdin-filename % - | isort -q -' },
{ pattern = { '*.py', '*.pyi' }, command = 'black -q --stdin-filename % - 2>/dev/null | isort -q - 2>/dev/null' },
{
pattern = { '*.js', '*.ts', '*.tsx', '*.vue', '*.css' },
command = function()