瀏覽代碼

Merge branch 'rolling' of github.com:LunarVim/LunarVim into rolling

Chris 4 年之前
父節點
當前提交
410354e7b1
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 = {