aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/ols.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/ols.lua b/lua/lspconfig/server_configurations/ols.lua
index 65dd085c..6b890f60 100644
--- a/lua/lspconfig/server_configurations/ols.lua
+++ b/lua/lspconfig/server_configurations/ols.lua
@@ -4,8 +4,7 @@ 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'),
},
docs = {
description = [[
@@ -14,7 +13,7 @@ return {
`Odin Language Server`.
]],
default_config = {
- root_dir = [[util.root_pattern("ols.json", ".git")]],
+ root_dir = [[util.root_pattern("ols.json", ".git", "*.odin")]],
},
},
}