Skip to content

Commit 1830bf4

Browse files
haraldanlithammer
andauthored
Update lsp/matlab_ls.lua
Co-authored-by: Peter Lithammer <[email protected]>
1 parent 78e5df8 commit 1830bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lsp/matlab_ls.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
return {
77
cmd = { 'matlab-language-server', '--stdio' },
88
filetypes = { 'matlab' },
9-
root_dir = function(_, callback)
10-
local root_dir = vim.fs.root(0, '.git')
9+
root_dir = function(bufnr, callback)
10+
local root_dir = vim.fs.root(bufnr, '.git')
1111
if root_dir then
1212
callback(root_dir)
1313
else

0 commit comments

Comments
 (0)