From 212b3cbdc7bfbff8021d2335da56bc25afa90950 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 15 Dec 2021 09:22:20 -0800 Subject: [PATCH] Add stylua fixer to null-ls --- install-language-servers.sh | 3 +++ neovim/lua/plugins/lsp.lua | 2 ++ 2 files changed, 5 insertions(+) diff --git a/install-language-servers.sh b/install-language-servers.sh index 66f7ed0..f466497 100755 --- a/install-language-servers.sh +++ b/install-language-servers.sh @@ -94,6 +94,9 @@ function install_fixers() { # Rust maybe_run rustup component add rustfmt + # Lua + maybe_run cargo install stylua + echo "" } diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index b238dc6..7133098 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -194,6 +194,8 @@ function M.config_null_ls() null_ls.builtins.diagnostics.shellcheck, -- Rust -- null_ls.builtins.formatting.rustfmt, + -- Lua + null_ls.builtins.formatting.stylua, }, } end