diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-01-26 23:55:03 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-01-26 23:55:03 +0200 |
| commit | 055d53133eb7b86589b0ce04281ad27d8732753e (patch) | |
| tree | b31f862fd5024123a1fc051af03dc3371a24c0a0 /lua | |
| parent | 818abc092a89c7ae8e975e2f4d9d6de005f5bd09 (diff) | |
| download | dotfiles-055d53133eb7b86589b0ce04281ad27d8732753e.tar.gz dotfiles-055d53133eb7b86589b0ce04281ad27d8732753e.zip | |
Restriction_mode = 'hint' and disable_mouse = false
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, } |
