diff --git a/nvim/lua/plugins/lua_ls.lua b/nvim/lua/plugins/lua_ls.lua new file mode 100644 index 0000000..fd36b83 --- /dev/null +++ b/nvim/lua/plugins/lua_ls.lua @@ -0,0 +1,8 @@ +local coq = require("coq") +local util = require("lspconfig.util") +require('lspconfig').lua_ls.setup( + coq.lsp_ensure_capabilities({ + cmd = { os.getenv("HOME") .. "/lua-language-server/bin/lua-language-server" }, + root_dir = util.root_pattern('init.lua'), + }) +) diff --git a/nvim/lua/plugins/matlab_ls.lua b/nvim/lua/plugins/matlab_ls.lua index 61426bd..ce03d11 100644 --- a/nvim/lua/plugins/matlab_ls.lua +++ b/nvim/lua/plugins/matlab_ls.lua @@ -2,7 +2,7 @@ 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" }, + cmd = { "node", os.getenv("HOME") .. "/MATLAB-language-server/out/index.js", "--stdio" }, root_dir = util.root_pattern('mw_anchor'), settings = { MATLAB = {