Make netrw sort C/C++ header/source files beside each other

This commit is contained in:
Kenneth Benzie 2025-06-03 12:25:01 +01:00
parent 0b6fa260b9
commit dc6aa82d73

View File

@ -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