mrcjkb / rustaceanvim

Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim
GNU General Public License v2.0
1.3k stars 47 forks source link

Shortcut to open relevant Cargo.toml #437

Closed bbaldino closed 3 weeks ago

bbaldino commented 3 weeks ago

Feature description

In my config I added a shortcut to open the relevant Cargo.toml based on the currently-opened file, any thoughts on adding support for this in rustaceanvim? For reference what I had:

  local function open_cargo_file()
    local cargo_file = vim.fn.findfile("Cargo.toml", ".;")
    vim.cmd('vnew ' .. cargo_file)
  end
mrcjkb commented 3 weeks ago

Hey 👋

There's already :RustLsp openCargo

bbaldino commented 3 weeks ago

Ah great, thanks!