mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
update nvchad to 2.5.0
This commit is contained in:
27
pkgs/nvchad/nvim/lua/configs/conform.lua
Normal file
27
pkgs/nvchad/nvim/lua/configs/conform.lua
Normal file
@ -0,0 +1,27 @@
|
||||
local prettier = { "prettierd", "prettier" }
|
||||
|
||||
local options = {
|
||||
lsp_fallback = true,
|
||||
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
javascript = { prettier },
|
||||
typescript = { prettier },
|
||||
javascriptreact = { prettier },
|
||||
typescriptreact = { prettier },
|
||||
json = { prettier },
|
||||
jsonc = { prettier },
|
||||
css = { prettier },
|
||||
html = { prettier },
|
||||
markdown = { prettier },
|
||||
nix = { "alejandra" },
|
||||
},
|
||||
|
||||
format_on_save = {
|
||||
lsp_fallback = true,
|
||||
async = false,
|
||||
timeout_ms = 1000,
|
||||
},
|
||||
}
|
||||
|
||||
require("conform").setup(options)
|
Reference in New Issue
Block a user