mirror of
https://github.com/neovim/neovim.git
synced 2026-07-10 11:29:39 +00:00
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>
14 lines
277 B
VimL
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"
|