diff options
author | Vu Nhat Chuong <ronnyvu321@gmail.com> | 2024-02-21 00:14:50 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 09:14:50 -0800 |
commit | 5e4a5f1aaa15be3bc17c5e96040fd71196993937 (patch) | |
tree | a416bc06e865e4ed387828f4f3dabd8166bd7053 /test/functional/lua/ui_spec.lua | |
parent | eb1e8c12e2c5ad172f2fe54cb96bf31602b16c3d (diff) | |
download | rneovim-5e4a5f1aaa15be3bc17c5e96040fd71196993937.tar.gz rneovim-5e4a5f1aaa15be3bc17c5e96040fd71196993937.tar.bz2 rneovim-5e4a5f1aaa15be3bc17c5e96040fd71196993937.zip |
fix(vim.ui.open): use explorer.exe instead of wslview #26947
Problem:
`vim.ui.open` uses `wslview`, which is slow and require a package from external PPA:
https://wslutiliti.es/wslu/install.html#ubuntu
Solution:
Use `explorer.exe` instead. WSL supports it by default:
https://learn.microsoft.com/en-us/windows/wsl/filesystems#view-your-current-directory-in-windows-file-explorer
Diffstat (limited to 'test/functional/lua/ui_spec.lua')
-rw-r--r-- | test/functional/lua/ui_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/ui_spec.lua b/test/functional/lua/ui_spec.lua index b3057068fe..e769843b19 100644 --- a/test/functional/lua/ui_spec.lua +++ b/test/functional/lua/ui_spec.lua @@ -152,7 +152,7 @@ describe('vim.ui', function() vim.fn.executable = function() return 0 end ]] eq( - 'vim.ui.open: no handler found (tried: wslview, xdg-open)', + 'vim.ui.open: no handler found (tried: explorer.exe, xdg-open)', exec_lua [[local _, err = vim.ui.open('foo') ; return err]] ) end) |