chore: nvt-min.lua: ensure only one instance of lua-language-server runs (#2956)

This commit is contained in:
Alexander Courtis
2024-10-14 10:24:15 +11:00
committed by GitHub
parent 1c9553a19f
commit 0fede9f813

View File

@@ -41,7 +41,11 @@ end
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "lua", pattern = "lua",
callback = function() callback = function()
vim.lsp.start { cmd = { "lua-language-server" } } vim.lsp.start {
name = "my-luals",
cmd = { "lua-language-server" },
root_dir = vim.loop.cwd(),
}
end, end,
}) })
]] ]]