Files
neovim/runtime/syntax/zip.lua
Barrett Ruth e29af9c32f refactor(zip)!: builtin zip.lua plugin #40846
Problem:
The bundled `zip` plugin is implemented in Vimscript, making it harder to
maintain and build on with Nvim's Lua runtime infrastructure.

Solution:
Add an opt-out `zip.lua` browser backed by `nvim.dir`, and disable the legacy
Vimscript implementation by moving it to `pack/dist/opt/zip/`. Load it with
`:packadd zip`.
2026-07-29 12:54:43 -04:00

13 lines
225 B
Lua

-- Syntax highlighting for nvim.zip archive listings.
if vim.b.current_syntax then
return
end
vim.cmd [[
syntax match zipDirectory '.*/$'
highlight default link zipDirectory Directory
]]
vim.b.current_syntax = 'zip'