File tree Expand file tree Collapse file tree 5 files changed +568
-395
lines changed Expand file tree Collapse file tree 5 files changed +568
-395
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ jobs:
36
36
token : ${{ secrets.GITHUB_TOKEN }}
37
37
version : latest
38
38
args : --config-path .stylua.toml ./lua
39
- - name : Add rxi/ json.lua
39
+ - name : Add json.lua
40
40
if : ${{ github.ref != 'refs/heads/main' }}
41
41
shell : bash
42
42
run : |
43
43
echo "pwd"
44
44
echo $PWD
45
- git clone --depth 1 https://github.com/rxi /json.lua.git ~/.json.lua
46
- cp ~/.json.lua/json.lua ./lua/colorbox/rxi_json .lua
45
+ git clone --depth= 1 https://github.com/actboy168 /json.lua.git ~/.json.lua
46
+ cp ~/.json.lua/json.lua ./lua/colorbox/actboy168_json .lua
47
47
- name : Auto Commit
48
48
if : ${{ github.ref != 'refs/heads/main' }}
49
49
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ local logger = require("colorbox.logger")
2
2
local LogLevels = require (" colorbox.logger" ).LogLevels
3
3
local utils = require (" colorbox.utils" )
4
4
local json = require (" colorbox.json" )
5
+ local uv = (vim .fn .has (" nvim-0.10" ) > 0 and vim .uv ~= nil ) and vim .uv
6
+ or vim .loop
5
7
6
8
--- @alias colorbox.Options table<any , any>
7
9
--- @type colorbox.Options
@@ -137,7 +139,9 @@ local function _init()
137
139
local ColorNamesList = require (" colorbox.db" ).get_color_names_list ()
138
140
for _ , color_name in pairs (ColorNamesList ) do
139
141
local spec = ColorNameToColorSpecsMap [color_name ]
140
- if not _should_filter (color_name , spec ) then
142
+ local stat = uv .fs_stat (spec .full_pack_path )
143
+ local obj_exist = stat ~= nil
144
+ if not _should_filter (color_name , spec ) and obj_exist then
141
145
table.insert (FilteredColorNamesList , color_name )
142
146
end
143
147
end
You can’t perform that action at this time.
0 commit comments