feat(nvim): add nix formatter and linter
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user