Closed rislah closed 2 years ago
turning the slashes around and doing Defx C:/Users/usr/AppData/Local/nvim
fixes the problem
related issues https://github.com/neovim/neovim/issues/2471 https://github.com/neovim/neovim/issues/7117
should be fixed on nvim, as i stated netrw handles it properly
You need to escape \
in the path.
Because \
is special character in defx.nvim command line.
Defx <C-r>=escape(expand('%:p:h'), '\')
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
Thank you for this plugin
Trying to open Defx in the current folder on Windows.
On my Linux system, everything is ok.
On Windows, for example cwd =
C:\Users\usr\AppData\Local\nvim
, doingDefx C:\Users\usr\AppData\Local\nvim
orDefx <C-r>=expand('%:p:h')<CR>
will result in error:"C:\Users\usr\AppData\Local\nvim\C:UsersusrAppDataLocalnvim" is not a readable directory.
This is not a problem with nvim on windows, as netrw handles it properly.
Expected
Environment Information
plugin version(SHA1): 82ca2c5bdf6dbab6f0f96980b572d44267003841
OS: Windows 10 21h2
neovim/Vim version: 0.7.2
:checkhealth
or:CheckHealth
result(neovim only):defx: health#defx#check
defx.nvim
nvim: health#nvim#check
Configuration
Performance
Remote Plugins
nvim-treesitter: require("nvim-treesitter.health").check()
Installation
tree-sitter
executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)node
found v16.15.1 (only needed for :TSInstallFromGrammar)git
executable found.clang
executable found. Selected from { "clang" } Version: clang version 14.0.6Parser/Features H L F I J
typescript x x x x x
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)
Python 3 provider (optional)
g:python3_host_prog
is not set. Searching for python in the environment.g:python3_host_prog
to avoid surprises.Python virtualenv
The reproduce ways from neovim/Vim starting (Required!)
:Defx <C-r>=expand('%:p:h')
Generate a logfile if appropriate
Nothing in logs
Screen shot (if possible)
https://i.imgur.com/Ag9eR0k.png
Upload the log file