diff --git a/nvim/lua/plugins/matlab_ls.lua b/nvim/lua/plugins/matlab_ls.lua index af6a2fa..7b903a9 100644 --- a/nvim/lua/plugins/matlab_ls.lua +++ b/nvim/lua/plugins/matlab_ls.lua @@ -1,8 +1,8 @@ -local util = require("lspconfig.util") -require('lspconfig').matlab_ls.setup( +vim.lsp.config.matlab_ls = { cmd = { "node", os.getenv("HOME") .. "/MATLAB-language-server/out/index.js", "--stdio" }, - root_dir = util.root_pattern('mw_anchor'), + root_markers = { 'mw_anchor' }, + filetypes = { 'matlab' }, single_file_support = true, settings = { MATLAB = { @@ -13,4 +13,5 @@ require('lspconfig').matlab_ls.setup( } } } -) + +vim.lsp.enable({'matlab_ls'})