diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-09-24 02:56:53 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-09-24 02:56:53 +0200 |
| commit | 0f6cee92221dc517bd756083e260dd9373851b82 (patch) | |
| tree | c6d929fa5832d17a2d1fe3c85744bae7621ed447 /common/nvim/lua/plugins/hardtime.lua | |
| parent | 3cf613ec7c90ab4933728b0f19e49b0c955c17bb (diff) | |
| download | dotfiles-0f6cee92221dc517bd756083e260dd9373851b82.tar.gz dotfiles-0f6cee92221dc517bd756083e260dd9373851b82.zip | |
Moved files to common/
Diffstat (limited to 'common/nvim/lua/plugins/hardtime.lua')
| -rwxr-xr-x | common/nvim/lua/plugins/hardtime.lua | 29 |
1 files changed, 0 insertions, 29 deletions
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 = { - ["<Up>"] = {}, - ["<Down>"] = {}, - ["<Left>"] = {}, - ["<Right>"] = {}, - }, -}) - -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, -} |
