poga / coc-rust-analyzer

rust-analyzer extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coc-rust-analyzer

rust-analyzer for Vim/Neovim, works as an extension with coc.nvim.

10

Install

:CocInstall coc-rust-analyzer

remove rust-analyzer config from coc-settings.json if you set

Configurations

This extension is configured using a jsonc file. You can open this configuration file using the command :CocConfig, and it is typically located at $HOME/.config/nvim/coc-settings.json.

  • rust-analyzer.serverPath: Path to custom rust-analyzer executable, default: ''
  • rust-analyzer.featureFlags: Fine grained feature flags to disable annoying features, default: {}, available flags
  • rust-analyzer.excludeGlobs: Paths to exclude from analysis, default: []
  • rust-analyzer.lruCapacity: Number of syntax trees rust-analyzer keeps in memory, default: null
  • rust-analyzer.useClientWatching: use client provided file watching instead of notify watching, default: true
  • rust-analyzer.cargo-watch.enable: Run cargo check for diagnostics on save, default: true
  • rust-analyzer.cargo-watch.arguments: cargo-watch arguments, default: []
  • rust-analyzer.cargo-watch.command: cargo-watch command, default: check
  • rust-analyzer.cargo-watch.allTargets: Check all targets and tests (will be passed as --all-targets)
  • rust-analyzer.cargoFeatures.noDefaultFeatures: do not activate the default feature
  • rust-analyzer.cargoFeatures.allFeatures: activate all available features
  • rust-analyzer.cargoFeatures.features: list of features to activate
  • rust-analyzer.trace.server: Trace requests to server, default: off

Settings not specific to rust-analyzer can be found at :help coc-configuration.

Commands

You can use these commands by :CocCommand XYZ.

  • rust-analyzer.analyzerStatus: Show rust-analyzer status
  • rust-analyzer.applySourceChange: Apply source change
  • rust-analyzer.selectAndApplySourceChange: Apply selected source change
  • rust-analyzer.collectGarbage: Run garbage collection
  • rust-analyzer.expandMacro: Expand macro recursively
  • rust-analyzer.joinLines: Join lines
  • rust-analyzer.matchingBrace: Find matching brace
  • rust-analyzer.parentModule: Locate parent module
  • rust-analyzer.reload: Restart rust-analyzer server
  • rust-analyzer.run: List available runnables of current file
  • rust-analyzer.runSingle: Run runnable at position
  • rust-analyzer.syntaxTree: Show syntax tree
  • rust-analyzer.upgrade: Download latest rust-analyzer from GitHub release

License

MIT


This extension is created by create-coc-extension

About

rust-analyzer extension for coc.nvim

License:MIT License


Languages

Language:TypeScript 96.2%Language:JavaScript 3.8%