mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 12:49:11 +00:00
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`.
13 lines
225 B
Lua
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'
|