add nixpkgs-fmt

This commit is contained in:
Sakooooo 2023-08-06 11:48:01 +03:00
parent 1985fb583d
commit b107437e21
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 9 additions and 10 deletions

View file

@ -33,6 +33,14 @@ mason_null_ls.setup()
require('lspconfig').nil_ls.setup({ require('lspconfig').nil_ls.setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
settings = {
['nil'] = {
testSetting = 42,
formatting = {
command = { "nixpkgs-fmt" },
},
},
},
}) })

View file

@ -11,6 +11,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nil nil
nixpkgs-fmt
]; ];
}; };
} }

View file

@ -1,10 +0,0 @@
{
"eval": {
"target": {
"args": [
"--expr",
"with import <nixpkgs> { }; callPackage ./nullpomino.nix { }"
]
}
}
}