From b958c9db5f50570c7a2a21f8bebd145d8622998b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20=C5=BDdanov?= Date: Fri, 25 Jul 2025 20:02:25 +0300 Subject: [PATCH] chore(oxlint): hot patch oxlint config --- lua/astrocommunity/pack/oxlint/init.lua | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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", + }, + }, + }, + }, }, }, }