2023-06-19 15:59:04 +08:00
|
|
|
local util = require 'lspconfig.util'
|
|
|
|
|
|
|
|
return {
|
|
|
|
default_config = {
|
|
|
|
cmd = { 'matlab-language-server', '--stdio' },
|
|
|
|
filetypes = { 'matlab' },
|
|
|
|
root_dir = util.find_git_ancestor,
|
|
|
|
single_file_support = false,
|
|
|
|
settings = {
|
2024-05-21 12:31:14 +08:00
|
|
|
MATLAB = {
|
2023-06-19 15:59:04 +08:00
|
|
|
indexWorkspace = false,
|
|
|
|
installPath = '',
|
|
|
|
matlabConnectionTiming = 'onStart',
|
|
|
|
telemetry = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
docs = {
|
|
|
|
description = [[
|
|
|
|
https://github.com/mathworks/MATLAB-language-server
|
|
|
|
|
|
|
|
MATLAB® language server implements the Microsoft® Language Server Protocol for the MATLAB language.
|
|
|
|
]],
|
|
|
|
},
|
|
|
|
}
|