From f1bcbd5ad473b8331f747af4ccb381a1d0988a70 Mon Sep 17 00:00:00 2001 From: Null Chilly <56817415+nullchilly@users.noreply.github.com> Date: Thu, 14 Jul 2022 08:20:25 +0700 Subject: fix(sumneko_lua): Stylua default (#1996) https://github.com/JohnnyMorganz/StyLua#finding-the-configuration --- lua/lspconfig/server_configurations/sumneko_lua.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/lspconfig/server_configurations/sumneko_lua.lua') diff --git a/lua/lspconfig/server_configurations/sumneko_lua.lua b/lua/lspconfig/server_configurations/sumneko_lua.lua index 0e06ca15..98d1dde2 100644 --- a/lua/lspconfig/server_configurations/sumneko_lua.lua +++ b/lua/lspconfig/server_configurations/sumneko_lua.lua @@ -4,6 +4,7 @@ local root_files = { '.luarc.json', '.luacheckrc', '.stylua.toml', + 'stylua.toml', 'selene.toml', } return { @@ -66,7 +67,7 @@ See `lua-language-server`'s [documentation](https://github.com/sumneko/lua-langu ]], default_config = { - root_dir = [[root_pattern(".luarc.json", ".luacheckrc", ".stylua.toml", "selene.toml", ".git")]], + root_dir = [[root_pattern(".luarc.json", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", ".git")]], }, }, } -- cgit v1.2.3-70-g09d2