✨ feat(nvim): add nix formatter and linter
This commit is contained in:
parent
e49c83af6e
commit
1d3760cf96
1 changed files with 16 additions and 0 deletions
|
@ -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",
|
"luckasRanarison/nvim-devdocs",
|
||||||
optional = true,
|
optional = true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue