Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netrw opens inside popup if ./crates is a directory #53

Closed
ten3roberts opened this issue Feb 22, 2023 · 0 comments · Fixed by #54
Closed

Netrw opens inside popup if ./crates is a directory #53

ten3roberts opened this issue Feb 22, 2023 · 0 comments · Fixed by #54
Assignees
Labels
bug Something isn't working

Comments

@ten3roberts
Copy link
Contributor

Current behavior

When doing crates.show_crate_popup() netrw is opened inside the popup window if a directory names crates exists in the current working directory.

Expected behavior

The popup window opens

Additional context/Screenshots

image
Occurs if there exists a directory called crates (common for workspaces) in the root

This is caused by the buffer name being set to cwd../crates and that is an existing directory

Possible solution

Neovim version

nvim --version
NVIM v0.9.0-dev-1023+g649742821                                                                                                                                                                                                                                 
Build type: RelWithDebInfo                                                                                                                                                                                                                                      
LuaJIT 2.1.0-beta3                                                                                                                                                                                                                                              
Compilation: /usr/bin/cc -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wno-unused-result -Wimplicit-fallthrough -Wvl
a -fno-common -fdiagnostics-color=always -fstack-protector-strong -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DMIN_LOG_LEVEL=3 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/tei/de
v/neovim/.deps/usr/include/luajit-2.1 -I/usr/include -I/home/tei/dev/neovim/.deps/usr/include -I/home/tei/dev/neovim/.deps/usr/include -I/home/tei/dev/neovim/.deps/usr/include -I/home/tei/dev/neovim/.deps/usr/include -I/home/tei/dev/neovim/build/src/nvim/a
uto -I/home/tei/dev/neovim/build/include -I/home/tei/dev/neovim/build/cmake.config -I/home/tei/dev/neovim/src -I/home/tei/dev/neovim/.deps/usr/include -I/home/tei/dev/neovim/.deps/usr/include -I/home/tei/dev/neovim/.deps/usr/include                        
                                                                                                                                                                                                                                                                
   system vimrc file: "$VIM/sysinit.vim"                                                                                                                                                                                                                        
  fall-back for $VIM: "/usr/local/share/nvim"                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                
Run :checkhealth for more info                          
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants