We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be super neato to support the following use cases:
(1) relative paths, pretty easy since it is relative to the current file!
{ imports = [ ./macs/nodes/mac5.nix ]; }
having the cursor at the beginning of ./macs/nodes/mac5.nix, being able to do C-c C-o or something to open the file.
./macs/nodes/mac5.nix
(2) paths based on NIX_PATH
a bit trickier, but would be pretty neat:
{ pkgs ? import <nixpkgs> }: null
being on <nixpkgs> and have it open default.nix of the NIX_PATH's nixpkgs. This can be done with nix-instantiate:
<nixpkgs>
grahamc@Morbo> nix-instantiate --eval -E '<nixpkgs>' /nix/var/nix/profiles/per-user/root/channels/nixos
of course, this should also support sub-files using the same method:
grahamc@Morbo> nix-instantiate --eval -E '<nixpkgs/nixos/lib/make-channel.nix>' /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/lib/make-channel.nix
Ideally version 2 would also support direnv altering the NIX_PATH.
The text was updated successfully, but these errors were encountered:
Make find-file-at-point support <nixpkgs>
9b12294
Closes NixOS#58
9d4eb7d
No branches or pull requests
It would be super neato to support the following use cases:
(1) relative paths, pretty easy since it is relative to the current file!
having the cursor at the beginning of
./macs/nodes/mac5.nix
, being able to do C-c C-o or something to open the file.(2) paths based on NIX_PATH
a bit trickier, but would be pretty neat:
being on
<nixpkgs>
and have it open default.nix of the NIX_PATH's nixpkgs. This can be done with nix-instantiate:of course, this should also support sub-files using the same method:
Ideally version 2 would also support direnv altering the NIX_PATH.
The text was updated successfully, but these errors were encountered: