mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 12:50:37 +00:00
37 lines
884 B
Lua
37 lines
884 B
Lua
return {
|
|
"lopi-py/luau-lsp.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
|
|
config = function()
|
|
require("luau-lsp").setup {
|
|
fflags = {
|
|
sync = true, -- sync currently enabled fflags with roblox's published fflags
|
|
override = {
|
|
DebugLuauDeferredConstraintResolution = true,
|
|
},
|
|
},
|
|
|
|
server = {
|
|
settings = {
|
|
-- https://github.com/folke/neoconf.nvim/blob/main/schemas/luau_lsp.json
|
|
["luau-lsp"] = {
|
|
require = {
|
|
mode = "relativeToFile",
|
|
directoryAliases = { ["@lune"] = "~/.lune/.typedefs/0.8.0/" },
|
|
},
|
|
completion = {
|
|
imports = {
|
|
enabled = true, -- enable auto imports
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
types = {
|
|
roblox = false,
|
|
},
|
|
}
|
|
end,
|
|
}
|