File tree Expand file tree Collapse file tree 6 files changed +9
-14
lines changed Expand file tree Collapse file tree 6 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 88 meson ,
99 ninja ,
1010 nix ,
11- nixpkgs-fmt ,
1211 pkg-config ,
1312 nlohmann_json ,
1413 python312 ,
@@ -29,10 +28,7 @@ stdenv.mkDerivation {
2928 pkg-config
3029 ] ;
3130
32- nativeCheckInputs = [
33- lit
34- nixpkgs-fmt
35- ] ;
31+ nativeCheckInputs = [ lit ] ;
3632
3733 buildInputs = [
3834 nix
Original file line number Diff line number Diff line change 3838 } ;
3939 regressionDeps = with pkgs ; [
4040 clang-tools
41- nixpkgs-fmt
4241 lit
4342 ] ;
4443 shellOverride = old : {
6665 devShells . nvim = pkgs . mkShell {
6766 nativeBuildInputs = [
6867 nixd
69- pkgs . nixpkgs-fmt
68+ pkgs . nixfmt-rfc-style
7069 pkgs . git
7170 ( import ./nixd/docs/editors/nvim-lsp.nix { inherit pkgs ; } )
7271 ] ;
105104 devShells . vscodium = pkgs . mkShell {
106105 nativeBuildInputs = [
107106 nixd
108- pkgs . nixpkgs-fmt
107+ pkgs . nixfmt-rfc-style
109108 ( import ./nixd/docs/editors/vscodium.nix { inherit pkgs ; } )
110109 ] ;
111110 } ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ For vscode users you should write `settings.json`[^settings] like this:
5959 "nixd": {
6060 "formatting": {
6161 // This is the default if ommited.
62- "command": [ "nixpkgs-fmt " ]
62+ "command": [ "nixfmt " ]
6363 },
6464 "options": {
6565 // By default, this entriy will be read from `import <nixpkgs> { }`
@@ -94,7 +94,7 @@ nvim_lsp.nixd.setup({
9494 expr = " import <nixpkgs> { }" ,
9595 },
9696 formatting = {
97- command = { " nixpkgs-fmt " },
97+ command = { " nixfmt " },
9898 },
9999 options = {
100100 nixos = {
@@ -130,7 +130,7 @@ nvim_lsp.nixd.setup({
130130 },
131131 " formatting" : {
132132 // Which command you would like to do formatting
133- " command" : [ " nixpkgs-fmt " ]
133+ " command" : [ " nixfmt " ]
134134 },
135135 // Tell the language server your desired option set, for completion
136136 // This is lazily evaluated.
Original file line number Diff line number Diff line change 368368 expr = "import <nixpkgs> { }",
369369 },
370370 formatting = {
371- command = { "nixpkgs-fmt " },
371+ command = { "nixfmt " },
372372 },
373373 options = {
374374 nixos = {
Original file line number Diff line number Diff line change 4343 "formatting" : {
4444 "command" : {
4545 "description" : " Which command you would like to do formatting" ,
46- "default" : " nixpkgs-fmt " ,
46+ "default" : " nixfmt " ,
4747 "type" : " string"
4848 }
4949 },
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace nixd {
1313// NOLINTBEGIN(readability-identifier-naming)
1414struct Configuration {
1515 struct Formatting {
16- std::vector<std::string> command = {" nixpkgs-fmt " };
16+ std::vector<std::string> command = {" nixfmt " };
1717 } formatting;
1818
1919 struct OptionProvider {
You can’t perform that action at this time.
0 commit comments