Skip to content

Commit

Permalink
feat(lsp): changed black to blue formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-grigoriev committed Oct 1, 2023
1 parent b684c95 commit 6c08009
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lua/lsp/_null_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -27,8 +30,6 @@ local sources = {
"txt",
},
}),
-- java
null_ls.builtins.formatting.google_java_format,
}

null_ls.setup({ sources = sources })

0 comments on commit 6c08009

Please sign in to comment.