rmagatti / goto-preview

A small Neovim plugin for previewing definitions using floating windows.
Apache License 2.0
779 stars 27 forks source link

[BUG] preview window triggers twice in vue 3 router file #73

Closed mactanxin closed 1 year ago

mactanxin commented 1 year ago

Describe the bug I recently discover this weird behavior, works fine with CoC, but not with Volar

sometimes trigger gpd will show popup window showing the same definition twice

To Reproduce Steps to reproduce the behavior:

In index.ts router file,

import moduleA from './moduleAfile';
import moduleB from './moduleBfile';

then move cursor to moduleA type gpd

Expected behavior popup window only show once

Screenshots

Screen Shot 2022-08-22 at 10 01 17 AM

Baseline (please complete the following information):

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.7.2_1/share/nvim"

Run :checkhealth for more info

 - URL to your current config (if public)

my `goto-preview.lua`

require('goto-preview').setup { default_mappings = true; }


**Additional context**
`:checkhealth` result

null-ls: require("null-ls.health").check()

nvim: health#nvim#check

Configuration

Performance

Remote Plugins

terminal

nvim-lsp-installer: require("nvim-lsp-installer.health").check()

nvim-lsp-installer report

nvim-treesitter: require("nvim-treesitter.health").check()

Installation

Parser/Features H L F I J

provider: health#provider#check

Clipboard (optional)

Python 3 provider (optional)

Python virtualenv

Ruby provider (optional)

Node.js provider (optional)

Perl provider (optional)

telescope: require("telescope.health").check()

Checking for required plugins

Checking external dependencies

===== Installed extensions =====

Telescope Extension: file_browser

Telescope Extension: notify

Telescope Extension: session-lens

vim.lsp: require("vim.lsp.health").check()

vim.treesitter: require("vim.treesitter.health").check()

rmagatti commented 1 year ago

Hey thanks for the issue submission!

If you close the top floating window, does the one below have the exact same content?

mactanxin commented 1 year ago

H @rmagatti , I updated my config file and somehow the bug has gone. Let me keep an eye on it for a few days. :)