From 4446d69c28aa27c2621bdb185e4a0afef355987e Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 14 Mar 2023 18:37:27 +0100 Subject: [PATCH] build(cache): added script to sync cache implementation with Neovim --- lua/lazy/core/cache.lua | 1 + scripts/update-neovim-cache | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 scripts/update-neovim-cache diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index a856db6..d96875a 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -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 = {} diff --git a/scripts/update-neovim-cache b/scripts/update-neovim-cache new file mode 100755 index 0000000..89b5665 --- /dev/null +++ b/scripts/update-neovim-cache @@ -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