From 6c08009b287337ce3158ef6d0a519d1602b1b7ae Mon Sep 17 00:00:00 2001 From: Ilya Grigoryev Date: Mon, 2 Oct 2023 00:39:27 +0300 Subject: [PATCH] feat(lsp): changed black to blue formatter --- lua/lsp/_null_ls.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lua/lsp/_null_ls.lua b/lua/lsp/_null_ls.lua index 3032a5f..6d60872 100644 --- a/lua/lsp/_null_ls.lua +++ b/lua/lsp/_null_ls.lua @@ -5,12 +5,15 @@ end local sources = { -- python - null_ls.builtins.formatting.black.with({ - extra_args = { "--line-length=80" } - }), + null_ls.builtins.formatting.blue, null_ls.builtins.formatting.isort, + -- json null_ls.builtins.formatting.fixjson, + + -- java + null_ls.builtins.formatting.google_java_format, + -- other languages null_ls.builtins.formatting.prettier.with({ filetypes = { @@ -27,8 +30,6 @@ local sources = { "txt", }, }), - -- java - null_ls.builtins.formatting.google_java_format, } null_ls.setup({ sources = sources })