Skip to content

Commit

Permalink
fix(sumneko_lua): check for yaml format of selene config (neovim#2228)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdoster authored Nov 6, 2022
1 parent 5f4b1fa commit d5e6d88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lspconfig/server_configurations/sumneko_lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local root_files = {
'.stylua.toml',
'stylua.toml',
'selene.toml',
'selene.yml',
}

local bin_name = 'lua-language-server'
Expand Down Expand Up @@ -79,7 +80,7 @@ See `lua-language-server`'s [documentation](https://github.com/sumneko/lua-langu
]],
default_config = {
root_dir = [[root_pattern(".luarc.json", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", ".git")]],
root_dir = [[root_pattern(".luarc.json", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml", ".git")]],
},
},
}

0 comments on commit d5e6d88

Please sign in to comment.