diff options
Diffstat (limited to 'lua/lspconfig/dotls.lua')
| -rw-r--r-- | lua/lspconfig/dotls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/dotls.lua b/lua/lspconfig/dotls.lua index 6bd47f0c..3b724757 100644 --- a/lua/lspconfig/dotls.lua +++ b/lua/lspconfig/dotls.lua @@ -12,8 +12,8 @@ configs[server_name] = { default_config = { cmd = { bin_name, '--stdio' }, filetypes = { 'dot' }, - root_dir = function(filename) - return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename) + root_dir = function(fname) + return util.root_pattern(unpack(root_files))(fname) or util.path.dirname(fname) end, }, docs = { |
