feat(extras): added conform.nvim extra you can use instead of null-ls/none-ls

This commit is contained in:
Folke Lemaitre 2023-09-29 13:37:00 +02:00
parent 6b05ed7dcd
commit f61a243d1a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 115 additions and 0 deletions

View file

@ -97,6 +97,15 @@ return {
end
end,
},
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
go = { "goimports", "gofumpt" },
},
},
},
{
"mfussenegger/nvim-dap",
optional = true,

View file

@ -16,6 +16,21 @@ return {
table.insert(opts.sources, nls.builtins.formatting.csharpier)
end,
},
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
cs = { "csharpier" },
},
formatters = {
csharpier = {
command = "dotnet-csharpier",
args = { "--write-stdout" },
},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)

View file

@ -37,4 +37,15 @@ return {
end
end,
},
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
terraform = { "terraform_fmt" },
tf = { "terraform_fmt" },
["terraform-vars"] = { "terraform_fmt" },
},
},
},
}