initial commit

This commit is contained in:
hgranthorner
2026-09-14 16:09:15 -04:00
commit 0485e97fd2
13 changed files with 270 additions and 0 deletions

18
lua/plugins/conform.lua Normal file
View File

@@ -0,0 +1,18 @@
vim.pack.add({
"https://github.com/stevearc/conform.nvim",
})
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
-- Conform will run the first available formatter
javascript = { "prettierd", "prettier", stop_after_first = true },
},
})
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*",
callback = function(args)
require("conform").format({ bufnr = args.buf })
end,
})