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 (lib) getExe hasPrefix removePrefix;
|
||||
|
||||
defaultFormat = self.formatter.${pkgs.system};
|
||||
defaultFormatter = self.formatter.${pkgs.system};
|
||||
|
||||
nixdPkg = nixd.packages.${pkgs.system}.default;
|
||||
|
||||
|
@ -31,9 +31,13 @@ in
|
|||
];
|
||||
|
||||
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 {
|
||||
nixpkgs = {
|
||||
expr = "import (builtins.getFlake \"${flakeDir}\").inputs.nixpkgs {}";
|
||||
|
@ -60,7 +64,7 @@ in
|
|||
nixd = {
|
||||
formatting = {
|
||||
-- TODO: Try to find <flake>.formatter
|
||||
command = { '${getExe defaultFormat}' },
|
||||
command = { '${getExe defaultFormatter}' },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue