feat(nvim): add nix formatter and linter

This commit is contained in:
Sergio Laín 2024-02-15 01:21:03 +01:00
parent e49c83af6e
commit 1d3760cf96
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -23,6 +23,22 @@ return {
},
},
},
{
"stevearc/conform.nvim",
opts = function(_, opts)
opts.formatters_by_ft.nix = opts.formatters_by_ft.nix or {}
table.insert(opts.formatters_by_ft.nix, "alejandra")
return opts
end,
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.nix = opts.linters_by_ft.nix or {}
table.insert(opts.linters_by_ft.nix, "statix")
return opts
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,