aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/lspconfig/server_configurations/syntax_tree.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/syntax_tree.lua b/lua/lspconfig/server_configurations/syntax_tree.lua
index 90a05ada..9b47ee51 100644
--- a/lua/lspconfig/server_configurations/syntax_tree.lua
+++ b/lua/lspconfig/server_configurations/syntax_tree.lua
@@ -4,9 +4,7 @@ return {
default_config = {
cmd = { 'stree', 'lsp' },
filetypes = { 'ruby' },
- root_dir = function(fname)
- return util.root_pattern '.streerc'(fname) or util.root_pattern('Gemfile', '.git')(fname)
- end,
+ root_dir = util.root_pattern('.streerc', 'Gemfile', '.git'),
},
docs = {
description = [[