Skip to content

Commit

Permalink
feat(nvim): setup conform.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpinn committed Dec 19, 2024
1 parent f1a2049 commit dc0abcb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nvim/lua/plugins/conform.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
{
"stevearc/conform.nvim",
init = function()
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
end,
opts = {
formatters_by_ft = {
lua = { "stylua" },
-- typescript = { { "prettierd", "prettier" }, "eslint_d" },
},
},
},
}

0 comments on commit dc0abcb

Please sign in to comment.