From 7ed2303648bf83bb081d9bd863660ebf2344ce47 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 04:19:28 +0200 Subject: Squashed 'common/config/nvim/' changes from 2a8020a..966d12a 966d12a Update/Overhaul git-subtree-dir: common/config/nvim git-subtree-split: 966d12ac730c83da90d60ab24eae539b2ea69441 --- lua/plugins/hardtime.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) mode change 100644 => 100755 lua/plugins/hardtime.lua (limited to 'lua/plugins/hardtime.lua') diff --git a/lua/plugins/hardtime.lua b/lua/plugins/hardtime.lua old mode 100644 new mode 100755 index cb03468..b440334 --- a/lua/plugins/hardtime.lua +++ b/lua/plugins/hardtime.lua @@ -1,26 +1,26 @@ -local hardtime = require('hardtime') +-- 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' }, + restriction_mode = "hint", + disabled_filetypes = { "qf", "netrw", "NvimTree", "NvimTree_1", "lazy", "mason", "oil", "dashboard" }, disable_mouse = false, disabled_keys = { - [''] = {}, - [''] = {}, - [''] = {}, - [''] = {}, + [""] = {}, + [""] = {}, + [""] = {}, + [""] = {}, }, }) --- Function to toggle the hardtime state and echo a message -local hardtime_enabled = true - function ToggleHardtime() hardtime.toggle() hardtime_enabled = not hardtime_enabled - local message = hardtime_enabled and 'hardtime on' or 'hardtime off' + local message = hardtime_enabled and "hardtime on" or "hardtime off" vim.cmd('echo "' .. message .. '"') end -- cgit v1.2.3