Skip to content
New issue

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

Add Neovim configuration information #1545

Merged
merged 8 commits into from
Feb 14, 2023
Merged

Commits on Feb 9, 2023

  1. Add Neovim configuration information

    The JSON provided for VSCode works with coc and nlsp-settings.
    This is verified by
    https://github.com/fannheyward/coc-rust-analyzer/blob/9d8bdb9290e2a9644367594a1ceed0288506efcd/README.md
    for coc, and feeding the JSON in to this schema
    https://github.com/tamago324/nlsp-settings.nvim/blob/215b537cfb3fad7c9c2e352fe47a10698b0993e0/schemas/_generated/rust_analyzer.json
    for validating nlsp-settings.
    
    The Lua translation is straight-forward and is how all rust-analyzer settings
    must be used with native nvim lsp.
    RossSmyth committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    92befb7 View commit details
    Browse the repository at this point in the history
  2. Fix line lengths

    RossSmyth committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    1d7bdef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1147d90 View commit details
    Browse the repository at this point in the history
  4. Make the steps clear

    First open a Rust buffer
    Then update RA settings
    If you don't open a buffer first then nothing will happen. This is because
    the plugin makes a raw LSP RPC, so RA must be attached.
    RossSmyth committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    4431c3d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    61a8154 View commit details
    Browse the repository at this point in the history
  6. Remove the Lua config

    The reason this is removed is because the JSON no longer lives in this
    file, so keeping the two in sync is a higher maintence burden than
    desired.
    RossSmyth committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    4edb74f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    592e23e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    17eafb7 View commit details
    Browse the repository at this point in the history