From f6fe8df9344d481ff705bb1ceedf2735a6e6d8b7 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 8 Mar 2023 11:12:03 +0100 Subject: [PATCH] nvim: add stylua --- .config/nvim/lua/plugins/null-ls.lua | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.config/nvim/lua/plugins/null-ls.lua b/.config/nvim/lua/plugins/null-ls.lua index f8bab18..a3f21d4 100644 --- a/.config/nvim/lua/plugins/null-ls.lua +++ b/.config/nvim/lua/plugins/null-ls.lua @@ -9,15 +9,10 @@ function M.config() null_ls.setup({ sources = { - builtins.formatting.black, - builtins.formatting.buf, - builtins.formatting.cue_fmt, - builtins.formatting.shfmt, - builtins.formatting.sqlfluff, - builtins.formatting.buildifier, - builtins.formatting.prettierd, - builtins.completion.spell, builtins.code_actions.eslint_d, + + builtins.completion.spell, + builtins.diagnostics.buf.with({ args = { "lint", "--disable-symlinks", "--path", "$FILENAME" }, cwd = function() @@ -30,8 +25,17 @@ function M.config() }), builtins.diagnostics.buildifier, builtins.diagnostics.cue_fmt, - builtins.diagnostics.golangci_lint, builtins.diagnostics.eslint_d, + builtins.diagnostics.golangci_lint, + + builtins.formatting.black, + builtins.formatting.buf, + builtins.formatting.buildifier, + builtins.formatting.cue_fmt, + builtins.formatting.prettierd, + builtins.formatting.shfmt, + builtins.formatting.sqlfluff, + builtins.formatting.stylua, }, debug = true, })