Telescope coc definitions
で定義に飛んだ後に元の使用箇所に戻ろうとして<C-o>
したら知らんとこにぶっ飛んでってしまうのでちゃんと元の場所に戻れるようにする。
Telescope coc definitions push_cursor_on_edit=true
自キーマップ
vim.keymap.set({ 'n' }, '<Leader>f', '[telescope]', { remap = true }) vim.keymap.set({ 'n' }, '[telescope]gd', '<Cmd>Telescope coc definitions push_cursor_on_edit=true<CR>') -- 他にも[telescope]*でキーマップ色々が続く
参考: github.com
telescope-coc以外でも独自のpickerを提供するプラグインの場合同様にする必要があると思われる…というか上のPRを見ると組み込みpickerでもmarks・lsp_references・lsp_document_symbolsでしかデフォルトtrueでないのでその他のpickerもおそらくそう。