Browse Source

fix the ruby root_dir for good :sob:

Abouzar Parvan 4 years ago
parent
commit
26a2225c3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lua/default-config.lua

+ 2 - 2
lua/default-config.lua

@@ -932,9 +932,9 @@ lvim.lang = {
         init_options = {
           formatting = true,
         },
-        root_dir = function()
+        root_dir = function(fname)
           local util = require("lspconfig").util
-          return util.root_pattern("Gemfile", ".git")
+          return util.root_pattern("Gemfile", ".git")(fname)
         end,
         settings = {
           solargraph = {