From 055d53133eb7b86589b0ce04281ad27d8732753e Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 26 Jan 2024 23:55:03 +0200 Subject: Restriction_mode = 'hint' and disable_mouse = false --- lua/plugins/hardtime.lua | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lua/plugins/hardtime.lua b/lua/plugins/hardtime.lua index 0a93f1b..cb03468 100644 --- a/lua/plugins/hardtime.lua +++ b/lua/plugins/hardtime.lua @@ -1,5 +1,19 @@ 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 to toggle the hardtime state and echo a message local hardtime_enabled = true @@ -10,15 +24,6 @@ function ToggleHardtime() vim.cmd('echo "' .. message .. '"') end -hardtime.setup({ - -- hardtime config here - disabled_filetypes = { 'qf', 'netrw', 'NvimTree', 'NvimTree_1', 'lazy', 'mason', 'oil', 'dashboard' }, - disabled_keys = { - [''] = {}, - [''] = {}, - }, -}) - return { ToggleHardtime = ToggleHardtime, } -- cgit v1.2.3