From b428f824bbca7c15d253fa37e78055a92419dd40 Mon Sep 17 00:00:00 2001 From: Andrew Conlin Date: Fri, 31 May 2024 14:54:39 +0100 Subject: [PATCH] [2024-05-31] Change matlab_ls root detection --- nvim/lua/plugins/matlab_ls.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/lua/plugins/matlab_ls.lua b/nvim/lua/plugins/matlab_ls.lua index 4bf09a2..61426bd 100644 --- a/nvim/lua/plugins/matlab_ls.lua +++ b/nvim/lua/plugins/matlab_ls.lua @@ -1,7 +1,9 @@ local coq = require("coq") +local util = require("lspconfig.util") require('lspconfig').matlab_ls.setup( coq.lsp_ensure_capabilities({ cmd = { "node", "/mathworks/home/aconlin/MATLAB-language-server/out/index.js", "--stdio" }, + root_dir = util.root_pattern('mw_anchor'), settings = { MATLAB = { indexWorkspace = false,