Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Possible features and ideas #41

@aaronjanse

Description

@aaronjanse

Here's are some informal ideas for things that we might want in rnix-lsp, some of which would be possible via evaluation. Feel free to add to this list:

  • hover over an expression to view its value
  • hover over a variable name to see documentation, extracted from comments nearby the variable's definition
  • auto-complete for variable names, even within with statements
  • goto-definiton across files
  • caching function parameters (for UI purposes only), so that pkgs.withPackages ({rustPackages}: ...) would let us know the value of rustPackages based on pkgs
  • auto-complete of attribute names for common patterns like functionName { /* attributes here */ }, maybe also use the comments next to paremeter definitions in the function source code
  • nixos option hover docs
  • nixos option autocomplete
  • diagnostics for when a user-provided value (e.g. a nixos option value) fails assertions elsewhere
  • understanding NixOS channels and flake inputs
  • test suite

Some of these might not be possible, and we might not want others. But I thought I'd at least write them down somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions