neovim

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 31e571c4b078edc979253abdd25534fc0dbc7733
parent 44a0388801668e1626d72a0e0a03a2343cb61b0a
Author: mrgrouse <mrgrouse@mrgrouse.com>
Date:   Thu,  5 Sep 2024 16:44:01 -0400

add conform.nvim plugin config, integrate with mason and mason-lspconfig

Diffstat:
Alua/plugins/conform.lua | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua @@ -0,0 +1,30 @@ +return { + "stevearc/conform.nvim", + event = { "BufReadPre", "BufNewFile" }, + config = function() + local conform = require("conform") + + conform.setup({ + formatters_by_ft = { + javascript = { "prettier" }, + typescript = { "prettier" }, + javascriptreact = { "prettier" }, + typescriptreact = { "prettier" }, + svelte = { "prettier" }, + css = { "prettier" }, + html = { "prettier" }, + json = { "prettier" }, + yaml = { "prettier" }, + markdown = { "prettier" }, + graphql = { "prettier" }, + lua = { "stylua" }, + python = { "isort", "black" }, + }, + --format_on_save = { + -- lsp_fallback = true, + -- async = false, + -- timeout_ms = 500, + --}, + }) + end, +}