fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.12k stars 39 forks source link

An action opens up a new tab, but I want the 'drop' behavior. #1251

Closed SeniorMars closed 1 month ago

SeniorMars commented 1 month ago

What's the output of :CocInfo

## versions

vim version: NVIM v0.11.0-dev-3379+g53afdf360-Homebrew
node version: v18.14.2
coc.nvim version: 0.0.82-c3ae5c3b 2024-05-23 20:39:40 +0800
coc.nvim directory: /Users/charlie/.local/share/nvim/lazy/coc.nvim
term: xterm-kitty
platform: darwin

## Log of coc.nvim

2024-06-21T14:53:21.939 INFO (pid:75862) [extension:coc-discord-rpc] - coc-discord-rpc is activated!
2024-06-21T14:53:21.970 INFO (pid:75862) [plugin] - coc.nvim initialized with node: v18.14.2 after 514
2024-06-21T14:53:21.971 INFO (pid:75862) [services] - LanguageClient Rust Analyzer Language Server state change: stopped => starting
2024-06-21T14:53:21.977 INFO (pid:75862) [language-client-index] - Language server "rust-analyzer" started with 76366
2024-06-21T14:53:22.023 INFO (pid:75862) [services] - LanguageClient Rust Analyzer Language Server state change: starting => running
2024-06-21T14:53:22.027 INFO (pid:75862) [services] - service rust-analyzer started
2024-06-21T14:53:22.128 INFO (pid:75862) [extension:coc-discord-rpc] - Connected to Discord Gateway
2024-06-21T14:53:22.979 INFO (pid:75862) [attach] - receive notification: highlight []
2024-06-21T14:53:23.298 INFO (pid:75862) [attach] - receive notification: highlight []

What's the output of :CocCommand rust-analyzer.serverVersion None as I use rustup: rust-analyzer 1.80.0-beta.1 (75ac3b63318 2024-06-10)

What's your coc-rust-analyzer version? You can get it from :CocList extensions 0.76.1

Okay, CleanShot 2024-06-21 at 14 52 12@2x so for instance when I use this action which creates a new file, I expect it to use my "coc.preferences.jumpCommand": "drop", my config, but instead it does a :tabe and I don't know why. Is there a config I'm missing?

SeniorMars commented 1 month ago

https://github.com/neoclide/coc.nvim/issues/5062 closes this