neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.15k stars 953 forks source link

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

Closed SeniorMars closed 1 week ago

SeniorMars commented 1 week ago

Result from CocInfo

## versions

vim version: NVIM v0.11.0-dev-3453+gbe999e6a0-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-27T13:11:06.072 INFO (pid:6103) [extension:coc-discord-rpc] - coc-discord-rpc is activated!
2024-06-27T13:11:06.105 INFO (pid:6103) [plugin] - coc.nvim initialized with node: v18.14.2 after 477
2024-06-27T13:11:06.105 INFO (pid:6103) [services] - LanguageClient Rust Analyzer Language Server state change: stopped => starting
2024-06-27T13:11:06.112 INFO (pid:6103) [language-client-index] - Language server "rust-analyzer" started with 6477
2024-06-27T13:11:06.163 INFO (pid:6103) [services] - LanguageClient Rust Analyzer Language Server state change: starting => running
2024-06-27T13:11:06.166 INFO (pid:6103) [services] - service rust-analyzer started
2024-06-27T13:11:06.237 INFO (pid:6103) [extension:coc-discord-rpc] - Connected to Discord Gateway
2024-06-27T13:11:06.927 INFO (pid:6103) [attach] - receive notification: highlight []

Describe the bug

Okay, so every time I use an action, I would expect it to drop me into the new buffer, but instead it creates a new tab. I do not like tabs as they are not the vim way. Here is an example:

image

So, 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? I also have

"list.source.location.defaultAction": "drop",, but this does not fix it.

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

fannheyward commented 1 week ago

Check :h coc-config-workspace-openResourceCommand.