Skip to content

Commit

Permalink
feat(nvim): reconfigure nixd lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Jan 7, 2025
1 parent 7a28f90 commit 8b94cb0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nvim.nix/config/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,15 @@
nixd.settings = {
nixpkgs.expr = "import <nixpkgs> { }";
formatting.command = [ "nixfmt" ];
options.nix_darwin.expr = ''(builtins.getFlake "${./../..}").darwinConfigurations.eR17x.options'';
options.nixvim.expr = ''(builtins.getFlake "${./../..}").packages.${system}.nvim.options'';
options.flake_parts.expr = ''let flake = builtins.getFlake ("${./../..}"); in flake.debug.options // flake.currentSystem.options'';
options =
let
flake = ''(builtins.getFlake "${./../..}")'';
in
rec {
nix-darwin.expr = ''${flake}.darwinConfigurations.eR17x.options'';
home-manager.expr = ''${nix-darwin.expr}.home-manager.users.type.getSubOptions []'';
nixvim.expr = ''${flake}.packages.${system}.nvim.options'';
};
};

yamlls.enable = true;
Expand Down

0 comments on commit 8b94cb0

Please sign in to comment.