diff --git a/lua/lspconfig/server_configurations/ols.lua b/lua/lspconfig/server_configurations/ols.lua index 65dd085c7e..965fa6cf3f 100644 --- a/lua/lspconfig/server_configurations/ols.lua +++ b/lua/lspconfig/server_configurations/ols.lua @@ -4,8 +4,8 @@ return { default_config = { cmd = { 'ols' }, filetypes = { 'odin' }, - root_dir = util.root_pattern('ols.json', '.git'), - single_file_support = true, + root_dir = util.root_pattern('ols.json', '.git', '*.odin'), + single_file_support = false, }, docs = { description = [[ @@ -14,7 +14,7 @@ return { `Odin Language Server`. ]], default_config = { - root_dir = [[util.root_pattern("ols.json", ".git")]], + root_dir = [[util.root_pattern("ols.json", ".git", "*.odin")]], }, }, }