Skip to content

Commit 498bf8a

Browse files
committedMar 22, 2025
refactor(nvim: plugins: lsp: nixd): use flake outPath to get lspHints
Signed-off-by: tsrk. <[email protected]>
1 parent ba091d6 commit 498bf8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎modules/nvim/plugins/lsp.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ in {
7979
settings = {
8080
formatting.command = [ "nixfmt" ];
8181
options = {
82-
nixos.expr = ''
83-
(builtins.getFlake ("git+file://" + toString ./.)).lspHints.nixos or {}'';
82+
nixos.expr =
83+
''(builtins.getFlake "${self.outPath}").lspHints.nixos or {}'';
8484
homeManager.expr = ''
85-
(builtins.getFlake ("git+file://" + toString ./.)).lspHints.homeManager or {}'';
85+
(builtins.getFlake "${self.outPath}").lspHints.homeManager or {}'';
8686
nixvim.expr = ''
87-
(builtins.getFlake ("git+file://" + toString ./.)).packages.${pkgs.system}.nvim-cirno.options or {}
87+
(builtins.getFlake "${self.outPath}").packages.${pkgs.system}.nvim-cirno.options or {}
8888
'';
8989
};
9090
};

0 commit comments

Comments
 (0)
Please sign in to comment.