From fa158d8eb60df9a9733c8fd841762d48e85e21bf Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 2 Oct 2025 11:52:29 +0900 Subject: modified plugins/lsp.lua --- mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'mac') diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua index b7b5812..fe9cf69 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua @@ -348,7 +348,19 @@ return { if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then return end - return { lsp_format = "fallback", timeout_ms = 1000, async = false } + local ft = vim.bo[bufnr].filetype + local off = { + javascript = true, + typescript = true, + javascriptreact = true, + typescriptreact = true, + json = true, + css = true, + } + if off[ft] then + return false + end + return { lsp_fallback = true, timeout_ms = 1000, async = false } end, }) -- cgit v1.2.3