add nixpkgs-fmt
This commit is contained in:
parent
1985fb583d
commit
b107437e21
3 changed files with 9 additions and 10 deletions
|
@ -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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"eval": {
|
|
||||||
"target": {
|
|
||||||
"args": [
|
|
||||||
"--expr",
|
|
||||||
"with import <nixpkgs> { }; callPackage ./nullpomino.nix { }"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue