Skip to content

Missing preview window when showing references #34

@RobertBuhren

Description

@RobertBuhren

Issue

When pressing "gr" on a symbol to list it's references a popup window with the list of references appears. However, there is no preview window when selecting an entry of that list. Pressing "Enter" on an entry will open the respective entry in the same window without changing it's size. See the screenshots attached.

Screenshot

Result of "gr" on the function "ccp_reverse_buf":
Screenshot from 2021-07-19 09-43-38

Result of pressing "Enter" on an entry:
Screenshot from 2021-07-19 09-56-54

Expected result

I'd expect that a preview window that displays the respective entry is created. Upon selecting an entry via "Enter" the respective location is opened in the current buffer.

Please close this issue if the shown behavior is indeed expected.

Setup

Tested with this minimal config and neovim-0.5 on archlinux. Language server is clangd.

set termguicolors
call plug#begin('~/.local/share/nvim/plugged')
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-treesitter/nvim-treesitter'

Plug 'ray-x/guihua.lua'
Plug 'ray-x/navigator.lua'

call plug#end()

lua <<EOF
local single = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"}
require"navigator".setup({
  debug = true,
  width = 0.7,
  border = single, -- "single"
})
EOF
set mouse=a

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions