dotfiles/nvim/lua/plugins/matlab_ls.lua

17 lines
513 B
Lua

local util = require("lspconfig.util")
require('lspconfig').matlab_ls.setup(
{
cmd = { "node", os.getenv("HOME") .. "/MATLAB-language-server/out/index.js", "--stdio" },
root_dir = util.root_pattern('mw_anchor'),
single_file_support = true,
settings = {
MATLAB = {
indexWorkspace = false,
installPath = "/usr/local/MATLAB/R2024b",
matlabConnectionTiming = "onStart",
telemetry = false
}
}
}
)