summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-10-02 11:52:29 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-10-02 11:52:29 +0900
commitfa158d8eb60df9a9733c8fd841762d48e85e21bf (patch)
tree134995dd3438df9941df5257a1d7df378549301d /mac
parentc400138328b08a90f5a11f9b8d64457579cb3d9d (diff)
modified plugins/lsp.lua
Diffstat (limited to 'mac')
-rw-r--r--mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua14
1 files changed, 13 insertions, 1 deletions
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,
})