## 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:
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
Create file mini.vim with:
set nocompatible
set runtimepath^=/path/to/coc.nvim
filetype plugin indent on
syntax on
set hidden
let g:coc_global_extensions = ['coc-rust-analyzer']
Now create a rust lib with cargo new coc and vim src/main.rs. Write
mod test;
use code action to create a new file as it does not exist. It will use :tabe: as default.
Result from CocInfo
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: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
Create file
mini.vim
with:Now create a rust lib with
cargo new coc
andvim src/main.rs
. Writeuse code action to create a new file as it does not exist. It will use
:tabe:
as default.Start (neo)vim with command:
vim -u mini.vim
Operate vim.