From a8406657f93f65bd1da6a6988090beb37fdfe6aa Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 30 Apr 2022 21:05:21 -0400 Subject: [PATCH] fix: remove nature hook handles since it was only for command exec errors, and theyre handled runner side now, we dont have to handle it via hooks anymore --- nature/hooks.lua | 11 ----------- nature/init.lua | 1 - 2 files changed, 12 deletions(-) delete mode 100644 nature/hooks.lua diff --git a/nature/hooks.lua b/nature/hooks.lua deleted file mode 100644 index a9bd0b1..0000000 --- a/nature/hooks.lua +++ /dev/null @@ -1,11 +0,0 @@ -local bait = require 'bait' - --- Hook handles -bait.catch('command.not-found', function(cmd) - print(string.format('hilbish: %s not found', cmd)) -end) - -bait.catch('command.not-executable', function(cmd) - print(string.format('hilbish: %s: not executable', cmd)) -end) - diff --git a/nature/init.lua b/nature/init.lua index f914d0e..16f26ed 100644 --- a/nature/init.lua +++ b/nature/init.lua @@ -4,7 +4,6 @@ local _ = require 'succulent' -- Function additions package.path = package.path .. ';' .. hilbish.dataDir .. '/?/init.lua' .. ';' .. hilbish.dataDir .. '/?/?.lua' -require 'nature.hooks' require 'nature.commands' require 'nature.completions'