From 20cb11b3d9caf64c3ac0fc129b92a4e543452c4a Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Fri, 26 Jul 2024 16:06:18 -0700 Subject: [PATCH] nvchad fix --- nvchad/.config/nvim/lua/plugins/init.lua | 27 +++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/nvchad/.config/nvim/lua/plugins/init.lua b/nvchad/.config/nvim/lua/plugins/init.lua index cb954f6..0507522 100644 --- a/nvchad/.config/nvim/lua/plugins/init.lua +++ b/nvchad/.config/nvim/lua/plugins/init.lua @@ -72,7 +72,32 @@ local plugins = { -- for users those who want auto-save conform + lazyloading! -- event = "BufWritePre" config = function() - require("custom.configs.conform") + local options = { + lsp_fallback = true, + + formatters_by_ft = { + -- Divine Intellect Languages + lua = { "stylua" }, + + -- Web Dev shit + javascript = { "prettier" }, + typescript = { "prettier" }, + javascriptreact = { "prettier" }, + typescriptreact = { "prettier" }, + css = { "prettier" }, + scss = { "prettier" }, + html = { "prettier" }, + + -- Data Science & AI stuff + python = { "black" }, + + sh = { "shfmt" }, + + -- Joke langs + haskell = { "stylish-haskell" } + }, + } + require("conform").setup(options) end, },