[2024-06-07] Adding lua_ls and addding $HOME directory for language servers

This commit is contained in:
Andrew Conlin 2024-06-07 10:42:46 +01:00
parent db30de940b
commit 82093cf953
2 changed files with 9 additions and 1 deletions

View File

@ -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'),
})
)

View File

@ -2,7 +2,7 @@ local coq = require("coq")
local util = require("lspconfig.util") local util = require("lspconfig.util")
require('lspconfig').matlab_ls.setup( require('lspconfig').matlab_ls.setup(
coq.lsp_ensure_capabilities({ 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'), root_dir = util.root_pattern('mw_anchor'),
settings = { settings = {
MATLAB = { MATLAB = {