diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins/hardtime.lua | 23 |
1 files 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 = { + ['<Up>'] = {}, + ['<Down>'] = {}, + ['<Left>'] = {}, + ['<Right>'] = {}, + }, +}) + -- 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 = { - ['<Up>'] = {}, - ['<Down>'] = {}, - }, -}) - return { ToggleHardtime = ToggleHardtime, } |
