fix: add luau-lsp

This commit is contained in:
2025-06-19 19:26:44 -07:00
parent 21fc56fb30
commit a92301a4c8

View File

@@ -1,3 +1,28 @@
local function setup_luau()
require("luau-lsp").setup({
platform = {
type = "roblox",
},
types = {
roblox_security_level = "PluginSecurity",
},
sourcemap = {
enabled = true,
autogenerate = true,
rojo_project_file = "default.project.json",
sourcemap_file = "sourcemap.json",
},
plugin = {
enabled = true,
port = 3667,
},
fflags = {
enable_new_solver = true,
sync = true,
},
})
end
return { return {
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
@@ -34,8 +59,9 @@ return {
"gopls", "gopls",
"templ", "templ",
}, },
automatic_enable = true, automatic_enable = { exclude = { "luau_lsp" } },
}) })
setup_luau()
local cmp = require("cmp") local cmp = require("cmp")
cmp.setup({ cmp.setup({
snippet = { snippet = {