diff --git a/lua/astrocommunity/pack/oxlint/init.lua b/lua/astrocommunity/pack/oxlint/init.lua index 07b8f0eec..d01774c04 100644 --- a/lua/astrocommunity/pack/oxlint/init.lua +++ b/lua/astrocommunity/pack/oxlint/init.lua @@ -19,13 +19,25 @@ return { opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "oxlint" }) end, }, + -- TODO: Remove after AstroNvim v6 is released with mason-lspconfig.nvim v2 { - -- TODO: Remove in AstroNvim v6 when mason-lspconfig.nvim is v2 "AstroNvim/astrolsp", - optional = true, - ---@type AstroLSPOpts opts = { - servers = { "oxlint" }, + mason_lspconfig = { + servers = { + oxlint = { + package = "oxlint", + filetypes = { + "javascript", + "javascriptreact", + "javascript.jsx", + "typescript", + "typescriptreact", + "typescript.tsx", + }, + }, + }, + }, }, }, }