aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorGiuseppe Gadola <giusgadola@gmail.com>2023-02-25 10:08:10 +0100
committerGiuseppe Gadola <giusgadola@gmail.com>2023-02-25 10:35:59 +0100
commitaa1fa36f31c57b6b688dd853862126820c7df1c2 (patch)
treedabed9f64a65855ce6bf66058b6ed92e9e3b257b /lua
parentchore: update gitignore (diff)
chore: licensing issue
Diffstat (limited to 'lua')
-rw-r--r--lua/pets/commands.lua52
1 files changed, 42 insertions, 10 deletions
diff --git a/lua/pets/commands.lua b/lua/pets/commands.lua
index 447f323..33edb14 100644
--- a/lua/pets/commands.lua
+++ b/lua/pets/commands.lua
@@ -2,7 +2,11 @@ local pets = require("pets")
local utils = require("pets.utils")
vim.api.nvim_create_user_command("PetsNew", function(input)
- local pet, style = pets.options.default_pet, pets.options.default_style
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
+ --[[ local pet, style = pets.options.default_pet, pets.options.default_style
-- validate the pets and style options
if not utils.validate_type_style(pet, style) then
@@ -14,11 +18,11 @@ vim.api.nvim_create_user_command("PetsNew", function(input)
pet, style = "cat", styles[math.random(#styles)]
end
- pets.create_pet(input.args, pet, style)
+ pets.create_pet(input.args, pet, style) ]]
end, { nargs = 1 })
vim.api.nvim_create_user_command("PetsNewCustom", function(input)
- local args = vim.split(input.args, " ", { trimempty = true })
+ --[[ local args = vim.split(input.args, " ", { trimempty = true })
if #args ~= 3 then
utils.warning("Inccorect number of arguments!\nUSAGE: PetsNewCustom {type} {style} {name}")
return
@@ -27,32 +31,60 @@ vim.api.nvim_create_user_command("PetsNewCustom", function(input)
if not utils.validate_type_style(type, style) then
return
end
- pets.create_pet(name, type, style)
+ pets.create_pet(name, type, style) ]]
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, { nargs = 1, complete = utils.complete_typestyle })
vim.api.nvim_create_user_command("PetsKillAll", function()
- pets.kill_all()
+ -- pets.kill_all()
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, {})
vim.api.nvim_create_user_command("PetsKill", function(input)
- pets.kill_pet(input.args)
+ -- pets.kill_pet(input.args)
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, {
nargs = 1,
complete = utils.complete_name,
})
vim.api.nvim_create_user_command("PetsList", function()
- pets.list()
+ -- pets.list()
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, {})
vim.api.nvim_create_user_command("PetsPauseToggle", function()
- pets.toggle_pause()
+ -- pets.toggle_pause()
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, {})
vim.api.nvim_create_user_command("PetsHideToggle", function()
- pets.toggle_hide()
+ -- pets.toggle_hide()
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, {})
vim.api.nvim_create_user_command("PetsSleepToggle", function()
- pets.toggle_sleep()
+ -- pets.toggle_sleep()
+ vim.notify(
+ "Pets is currently searching for new assetes due to licensing issues with the previous ones,\nif you still have them please remove them or buy the asset pack. See #26 on github if you want to suggest anything.",
+ vim.log.levels.INFO
+ )
end, {})