feat(nvim): add nix formatter and linter

This commit is contained in:
sankalp committed 2024-02-15 12:48:17 +05:45
1 parent cd73920ed1
commit b39bde85b5
2 files changed
+24 -8

No files matched your search

@@ -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,