Port fix for gx in WSL
This commit is contained in:
parent
0c9780cdd5
commit
d30de16dca
@ -1,6 +1,11 @@
|
||||
-- Disable banner
|
||||
vim.g.netrw_banner = 0
|
||||
|
||||
-- Fix gx when running inside WSL
|
||||
if vim.env.WSLENV then
|
||||
vim.g.netrw_browsex_viewer = 'cmd.exe /C start'
|
||||
end
|
||||
|
||||
-- Map - key to open netrw in current files parent directory
|
||||
vim.keymap.set('n', '-', function()
|
||||
-- Get the filename before invoking netrw
|
||||
|
Loading…
x
Reference in New Issue
Block a user