aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/matlab_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/matlab_ls.lua')
-rw-r--r--lsp/matlab_ls.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lsp/matlab_ls.lua b/lsp/matlab_ls.lua
new file mode 100644
index 00000000..bdc589e9
--- /dev/null
+++ b/lsp/matlab_ls.lua
@@ -0,0 +1,21 @@
+---@brief
+---
+--- https://github.com/mathworks/MATLAB-language-server
+---
+--- MATLAB® language server implements the Microsoft® Language Server Protocol for the MATLAB language.
+return {
+ cmd = { 'matlab-language-server', '--stdio' },
+ filetypes = { 'matlab' },
+ root_dir = function(bufnr, on_dir)
+ local root_dir = vim.fs.root(bufnr, '.git')
+ on_dir(root_dir or vim.fn.getcwd())
+ end,
+ settings = {
+ MATLAB = {
+ indexWorkspace = true,
+ installPath = '',
+ matlabConnectionTiming = 'onStart',
+ telemetry = true,
+ },
+ },
+}