question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

b:defx['paths'] dont update

See original GitHub issue

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Environment Information

  • defx version(SHA1): 3d36fea

  • OS: Linux

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

" Your minimal init.vim/vimrc
set rtp+=~/test_nvim/defx.nvim/

The reproduce ways from neovim/Vim starting (Required!)

  1. nvim -u init.vim
  2. :Defx ~ and check b:defx.paths, for me, it is ['/home/zgp/']
  3. :Defx ~ ~ and check b:defx.paths again, for me, it is ['/home/zgp/'], but ['/home/zgp/', '/home/zgp/'] be expected.
  4. You will find that the paths are not updated to two item, If I don’t misunderstand the purpose of the paths.

Try to fix it

I found that the window recovery here ignores the changes of the paths: https://github.com/Shougo/defx.nvim/blob/3d36feaf41eb1c6a8411dae34964057783179ad1/rplugin/python3/defx/view.py#L320-L327

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Shougocommented, Apr 4, 2019

Unfortunately, it is feature. But you can understand easily than vimfiler which written in Vim script.

0reactions
zgpiocommented, Apr 4, 2019

Sorry for that, maybe I didn’t express it clearly. I mean source code comment, defx implementation is difficult for me to understand, there is little comment on important data structures, I can only understand it myself, maybe my development experience is not enough. @Shougo

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found