Files
neovim/runtime/syntax/directory.vim
Barrett Ruth bf917a503a feat(runtime): replace netrw with a very small script #39723
Problem:
`:edit <dir>` and `nvim <dir>` currently rely on netrw to show local directory
contents.

Solution:
- Provide `filetype=directory`.
- Introduce dir.lua, a small plugin that provides directory listing, opening
  items, parent navigation, and refresh.
- `netrw` remains available for `:Explore`, remote paths, archives, and file
  operations. To continue 

Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2026-06-25 17:31:18 -04:00

14 lines
277 B
VimL

" Vim syntax file
" Language: Directory listing
" Maintainer: The Nvim Project <https://github.com/neovim/neovim>
if exists("b:current_syntax")
finish
endif
syn match directoryDirectory ".*/$"
hi def link directoryDirectory Directory
let b:current_syntax = "directory"