[BUG] preview window triggers twice in vue 3 router file
mactanxin opened this issue · 2 comments
mactanxin commented
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
Baseline (please complete the following information):
- OS. e.g
uname -a
:Darwin MacBook-Pro-2.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
- Neovim version
nvim --version
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@HMBRW-A-001-M1-004.local
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()
========================================================================
- INFO: no sources registered
nvim: health#nvim#check
========================================================================
## Configuration
- OK: no issues found
## Performance
- OK: Build type: Release
## Remote Plugins
- OK: Up to date
## terminal
- INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
- INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
- INFO: $TERM_PROGRAM='iTerm.app'
- INFO: $COLORTERM='truecolor'
nvim-lsp-installer: require("nvim-lsp-installer.health").check()
========================================================================
## nvim-lsp-installer report
- OK: neovim version >= 0.7.0
- OK: **Go**: `go version go1.19 darwin/arm64`
- WARNING: **cargo**: not available
- WARNING: **luarocks**: not available
- OK: **Ruby**: `ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]`
- OK: **RubyGem**: `3.0.3.1`
- WARNING: **Composer**: not available
- OK: **PHP**: `PHP 8.1.9 (cli) (built: Aug 4 2022 14:00:20) (NTS)`
- OK: **npm**: `8.11.0`
- OK: **node**: `v16.15.1`
- OK: **python3**: `Python 3.10.6`
- OK: **pip3**: `pip 22.2.2 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)`
- WARNING: **javac**: not available
- WARNING: **java**: not available
- WARNING: **julia**: not available
- OK: **wget**: `GNU Wget 1.21.3 built on darwin21.3.0.`
- OK: **curl**: `curl 7.79.1 (x86_64-apple-darwin21.0) libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1`
- OK: **gzip**: `Apple gzip 353.100.22`
- OK: **tar**: `bsdtar 3.5.1 - libarchive 3.5.1 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 `
- OK: **bash**: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)`
- OK: **sh**: `Ok`
- OK: GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: Mon Aug 22 11:19:03 2022.
nvim-treesitter: require("nvim-treesitter.health").check()
========================================================================
## Installation
- OK: `tree-sitter` found 0.20.6 (parser generator, only needed for :TSInstallFromGrammar)
- OK: `node` found v16.15.1 (only needed for :TSInstallFromGrammar)
- OK: `git` executable found.
- OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: Apple clang version 13.1.6 (clang-1316.0.21.2.5)
- OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
## Parser/Features H L F I J
- json ✓ ✓ ✓ ✓ .
- python ✓ ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓ ✓
- typescript ✓ ✓ ✓ ✓ ✓
- html ✓ ✓ ✓ ✓ ✓
- javascript ✓ ✓ ✓ ✓ ✓
- vue ✓ . ✓ ✓ ✓
- lua ✓ ✓ ✓ ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang}
provider: health#provider#check
========================================================================
## Clipboard (optional)
- OK: Clipboard tool found: pbcopy
## Python 3 provider (optional)
- INFO: `g:python3_host_prog` is not set. Searching for python3.9 in the environment.
- INFO: Executable: /opt/homebrew/bin/python3.9
- INFO: Python version: 3.9.13
- INFO: pynvim version: 0.4.3
- OK: Latest pynvim is installed.
## Python virtualenv
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- INFO: Ruby: ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
- WARNING: `neovim-ruby-host` not found.
- ADVICE:
- Run `gem install neovim` to ensure the neovim RubyGem is installed.
- Run `gem environment` to ensure the gem bin directory is in $PATH.
- If you are using rvm/rbenv/chruby, try "rehashing".
- See :help |g:ruby_host_prog| for non-standard gem installations.
- You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim
## Node.js provider (optional)
- INFO: Node.js: v16.15.1
- INFO: Nvim node.js host: /Users/xintan/.nvm/versions/node/v16.15.1/lib/node_modules/neovim/bin/cli.js
- OK: Latest "neovim" npm/yarn package is installed: 4.10.1
## Perl provider (optional)
- WARNING: "Neovim::Ext" cpan module is not installed
- ADVICE:
- See :help |provider-perl| for more information.
- You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim
telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
- OK: plenary installed.
- OK: nvim-treesitter installed.
## Checking external dependencies
- OK: rg: found ripgrep 13.0.0
- OK: fd: found fd 8.4.0
## ===== Installed extensions =====
## Telescope Extension: `file_browser`
- INFO: No healthcheck provided
## Telescope Extension: `notify`
- INFO: No healthcheck provided
## Telescope Extension: `session-lens`
- INFO: No healthcheck provided
vim.lsp: require("vim.lsp.health").check()
========================================================================
- INFO: LSP log level : WARN
- INFO: Log path: /Users/xintan/.cache/nvim/lsp.log
- INFO: Log size: 1361 KB
vim.treesitter: require("vim.treesitter.health").check()
========================================================================
- INFO: Runtime ABI version : 14
- OK: Loaded parser for css: ABI version 13
- OK: Loaded parser for html: ABI version 13
- OK: Loaded parser for javascript: ABI version 13
- OK: Loaded parser for json: ABI version 13
- OK: Loaded parser for lua: ABI version 13
- OK: Loaded parser for python: ABI version 13
- OK: Loaded parser for typescript: ABI version 13
- OK: Loaded parser for vue: ABI version 13
rmagatti commented
Hey thanks for the issue submission!
If you close the top floating window, does the one below have the exact same content?