diff --git a/plugin/netrw.lua b/plugin/netrw.lua index 9ea53d3..b624111 100644 --- a/plugin/netrw.lua +++ b/plugin/netrw.lua @@ -6,6 +6,9 @@ if vim.env.WSLENV then vim.g.netrw_browsex_viewer = 'cmd.exe /C start' end +-- Sort files in a sensible sequence +vim.g.netrw_sort_sequence = '[\\/]$,*' + -- Map - key to open netrw in current files parent directory vim.keymap.set('n', '-', function() -- Get the filename before invoking netrw