diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-22 16:44:32 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-22 16:44:32 +0100 |
commit | 7a60f2d61c44cdba85cbcf10b561b0401e9b105a (patch) | |
tree | 0f92b1e21f84c907bcd1c373625960d2834dc326 /lua/config/lsp/null-ls.lua | |
parent | c22beb43a4526372abbd6c3dab48051e6b4e2a20 (diff) |
fix: format with stylua config
Diffstat (limited to 'lua/config/lsp/null-ls.lua')
-rw-r--r-- | lua/config/lsp/null-ls.lua | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/lua/config/lsp/null-ls.lua b/lua/config/lsp/null-ls.lua index 1c81cba..662d429 100644 --- a/lua/config/lsp/null-ls.lua +++ b/lua/config/lsp/null-ls.lua @@ -2,7 +2,7 @@ local null_ls_status_ok, null_ls = pcall(require, "null-ls") if not null_ls_status_ok then - return + return end -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting @@ -11,26 +11,28 @@ local formatting = null_ls.builtins.formatting -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics local diagnostics = null_ls.builtins.diagnostics -null_ls.setup({ - debug = false, - sources = { - diagnostics.cppcheck, - diagnostics.flake8, - diagnostics.golangci_lint, - diagnostics.jsonlint, - diagnostics.shellcheck, - diagnostics.yamllint, - formatting.black.with({ extra_args = { "--fast" } }), - formatting.erlfmt, - formatting.fourmolu, - formatting.gofmt, - formatting.goimports, - formatting.nixfmt, - formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }), - formatting.rustfmt, - formatting.shfmt, - formatting.sqlformat, - formatting.stylua, - formatting.terraform_fmt, - }, -}) +null_ls.setup { + debug = false, + sources = { + diagnostics.cppcheck, + diagnostics.flake8, + diagnostics.golangci_lint, + diagnostics.jsonlint, + diagnostics.shellcheck, + diagnostics.yamllint, + formatting.black.with { extra_args = { "--fast" } }, + formatting.erlfmt, + formatting.fourmolu, + formatting.gofmt, + formatting.goimports, + formatting.nixfmt, + formatting.prettier.with { + extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" }, + }, + formatting.rustfmt, + formatting.shfmt, + formatting.sqlformat, + formatting.stylua, + formatting.terraform_fmt, + }, +} |