nvim-config/lua/plugins/prettier.lua

39 lines
747 B
Lua
Raw Permalink Normal View History

2024-09-12 21:43:42 +02:00
return {
{
"stevearc/conform.nvim",
opts = {},
2024-09-21 10:41:48 +02:00
config = function()
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
rust = { "rustfmt", lsp_format = "fallback" },
javascript = { "prettier", stop_after_first = true },
dart = { "dart format", lsp_format = "fallback" },
go = { "gofmt" },
swift = { "swiftformat" },
c = { "clang-format" },
cpp = { "clang-format" },
2024-12-13 12:25:43 +01:00
python = { "black" },
2024-09-21 10:41:48 +02:00
},
})
end,
2024-09-12 21:43:42 +02:00
},
{
"m4xshen/autoclose.nvim",
opts = {},
},
{
"numToStr/Comment.nvim",
opts = {},
config = function()
require("Comment").setup()
end,
},
{
"nmac427/guess-indent.nvim",
config = function()
require("guess-indent").setup({})
end,
},
2024-09-12 21:43:42 +02:00
}