feat(nvim): reduce nixd logs
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
fef7e37f17
commit
bc753eb285
1 changed files with 7 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
||||||
inherit (config.vars) hostName mainUser neovimIde;
|
inherit (config.vars) hostName mainUser neovimIde;
|
||||||
inherit (lib) getExe hasPrefix removePrefix;
|
inherit (lib) getExe hasPrefix removePrefix;
|
||||||
|
|
||||||
defaultFormat = self.formatter.${pkgs.system};
|
defaultFormatter = self.formatter.${pkgs.system};
|
||||||
|
|
||||||
nixdPkg = nixd.packages.${pkgs.system}.default;
|
nixdPkg = nixd.packages.${pkgs.system}.default;
|
||||||
|
|
||||||
|
@ -31,9 +31,13 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
defaultFormat
|
defaultFormatter
|
||||||
|
nixdPkg
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# nixd by default kinda spams LspLog
|
||||||
|
home.sessionVariables.NIXD_FLAGS = "-log=error";
|
||||||
|
|
||||||
xdg.dataFile."${flakeDir}/.nixd.json".text = builtins.toJSON {
|
xdg.dataFile."${flakeDir}/.nixd.json".text = builtins.toJSON {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
expr = "import (builtins.getFlake \"${flakeDir}\").inputs.nixpkgs {}";
|
expr = "import (builtins.getFlake \"${flakeDir}\").inputs.nixpkgs {}";
|
||||||
|
@ -60,7 +64,7 @@ in
|
||||||
nixd = {
|
nixd = {
|
||||||
formatting = {
|
formatting = {
|
||||||
-- TODO: Try to find <flake>.formatter
|
-- TODO: Try to find <flake>.formatter
|
||||||
command = { '${getExe defaultFormat}' },
|
command = { '${getExe defaultFormatter}' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue