Skip to content

Commit

Permalink
fix(cpicker): init data_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Jul 31, 2024
1 parent d0d48b7 commit e5cf902
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundle/cpicker.nvim/plugin/cpicker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
-- License: GPLv3
--=============================================================================

-- detached cpicker need this var
if not vim.g.spacevim_data_dir then
vim.g.spacevim_data_dir = '~/.cache/'
end

if vim.api.nvim_create_user_command then
local function complete()
return { 'rgb', 'hsl', 'hsv', 'cmyk', 'hwb', 'linear', 'lab' }
Expand Down

0 comments on commit e5cf902

Please sign in to comment.