Skip to content

Commit 0fede9f

Browse files
authored
chore: nvt-min.lua: ensure only one instance of lua-language-server runs (#2956)
1 parent 1c9553a commit 0fede9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/ISSUE_TEMPLATE/nvt-min.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ end
4141
vim.api.nvim_create_autocmd("FileType", {
4242
pattern = "lua",
4343
callback = function()
44-
vim.lsp.start { cmd = { "lua-language-server" } }
44+
vim.lsp.start {
45+
name = "my-luals",
46+
cmd = { "lua-language-server" },
47+
root_dir = vim.loop.cwd(),
48+
}
4549
end,
4650
})
4751
]]

0 commit comments

Comments
 (0)