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

DrexDrawerFindFileAndFocus throws error when in empty buffer #46

Open
minusf opened this issue Nov 15, 2024 · 1 comment
Open

DrexDrawerFindFileAndFocus throws error when in empty buffer #46

minusf opened this issue Nov 15, 2024 · 1 comment

Comments

@minusf
Copy link

minusf commented Nov 15, 2024

I'd like to keep just a single shortcut to open the files drawer, whether there is a file in the buffer or not... If there is no file in the buffer, the drawer could just show the current folder. Currently and unhandled error is thrown, and the current folder shown :D

Error executing Lua callback: The given path '/some/path/src/django/www/' is equal to the buffers root path!
stack traceback:
        [C]: in function 'error'
        ...local/share/nvim/plugged/drex.nvim/lua/drex/elements.lua:25: in function 'expand_path'
        ...local/share/nvim/plugged/drex.nvim/lua/drex/elements.lua:302: in function 'focus_element'
        .../.local/share/nvim/plugged/drex.nvim/lua/drex/drawer.lua:152: in function 'find_element'
        ...op/.local/share/nvim/plugged/drex.nvim/plugin/drex.lua:51: in function <...op/.local/share/nvim/plugged/drex.nvim/plugin/drex.lua:50>
@TheBlob42
Copy link
Owner

Good catch 🤔 I will have a look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants