build(cache): added script to sync cache implementation with Neovim

This commit is contained in:
Folke Lemaitre 2023-03-14 18:37:27 +01:00
parent 2a88a73ace
commit 4446d69c28
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ if type(package.loaded["vim.cache"]) == "table" then
return package.loaded["vim.cache"]
end
-- NEOVIM
local uv = vim.loop
local M = {}

4
scripts/update-neovim-cache Executable file
View File

@ -0,0 +1,4 @@
#!/bin/env bash
cd ~/projects/neovim || exit
sed -n '/NEOVIM/,$p' ~/projects/lazy.nvim/lua/lazy/core/cache.lua | sed '1d' | rg -v "selene" >./runtime/lua/vim/cache.lua
stylua ./runtime/lua/vim/cache.lua