From cba7ae998045aa4af1a780da2f48d61f44a780e1 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Sun, 14 Jan 2024 03:59:54 +0100 Subject: [PATCH] feat(none-ls.lua): add configuration for null-ls plugin to enable formatting with stylua, prettierd, shfmt, black, and rustfmt The changes were made to add configuration for the null-ls plugin in the none-ls.lua file. This configuration enables formatting with the following tools: stylua, prettierd, shfmt, black, and rustfmt. This allows for consistent and automated formatting of code in the Lua project. --- lua/absolute/after/none-ls.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/absolute/after/none-ls.lua diff --git a/lua/absolute/after/none-ls.lua b/lua/absolute/after/none-ls.lua new file mode 100644 index 0000000..e2a6f6c --- /dev/null +++ b/lua/absolute/after/none-ls.lua @@ -0,0 +1,11 @@ +local null_ls = require("null-ls") + +null_ls.setup({ + sources = { + null_ls.builtins.formatting.stylua, + null_ls.builtins.formatting.prettierd, + null_ls.builtins.formatting.shfmt, + null_ls.builtins.formatting.black, + null_ls.builtins.formatting.rustfmt, + }, +})