From 0f6cee92221dc517bd756083e260dd9373851b82 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 02:56:53 +0200 Subject: Moved files to common/ --- common/nvim/lua/plugins/hardtime.lua | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 common/nvim/lua/plugins/hardtime.lua (limited to 'common/nvim/lua/plugins/hardtime.lua') diff --git a/common/nvim/lua/plugins/hardtime.lua b/common/nvim/lua/plugins/hardtime.lua deleted file mode 100755 index b440334..0000000 --- a/common/nvim/lua/plugins/hardtime.lua +++ /dev/null @@ -1,29 +0,0 @@ --- Function to toggle the hardtime state and echo a message -local hardtime_enabled = true - -local hardtime = require("hardtime") - -hardtime.setup({ - -- hardtime config here - enabled = true, - restriction_mode = "hint", - disabled_filetypes = { "qf", "netrw", "NvimTree", "NvimTree_1", "lazy", "mason", "oil", "dashboard" }, - disable_mouse = false, - disabled_keys = { - [""] = {}, - [""] = {}, - [""] = {}, - [""] = {}, - }, -}) - -function ToggleHardtime() - hardtime.toggle() - hardtime_enabled = not hardtime_enabled - local message = hardtime_enabled and "hardtime on" or "hardtime off" - vim.cmd('echo "' .. message .. '"') -end - -return { - ToggleHardtime = ToggleHardtime, -} -- cgit v1.2.3