my-nvim-setup/lua/languages/luau.lua

38 lines
884 B
Lua
Raw Normal View History

2024-02-15 11:13:37 +00:00
return {
2024-03-05 06:54:50 +00:00
"lopi-py/luau-lsp.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
2024-02-15 11:13:37 +00:00
2024-03-05 06:54:50 +00:00
config = function()
require("luau-lsp").setup {
fflags = {
sync = true, -- sync currently enabled fflags with roblox's published fflags
override = {
DebugLuauDeferredConstraintResolution = true,
},
},
2024-02-15 11:13:37 +00:00
2024-03-05 06:54:50 +00:00
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,
2024-02-15 11:13:37 +00:00
}