dotfiles/.config/nvim/lua/plugins/hardtime.lua
Sergio Laín d4441b2650
feat(nvim): new plugins and changes to existing ones
git conflict, diff view and code screenshot
2023-10-17 18:07:22 +02:00

41 lines
957 B
Lua

return {
{
"m4xshen/hardtime.nvim",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
enabled = false,
event = "VeryLazy",
keys = {
{ "<leader>uH", "<cmd>Hardtime toggle<CR>", desc = "Toggle Hardtime" },
},
opts = {
disabled_filetypes = {
"qf",
"netrw",
"NvimTree",
"lazy",
"mason",
"oil",
"neo-tree",
"symbols-outline",
"vim-be-good",
},
restriction_mode = "hint",
restricted_keys = {
["h"] = { "n", "x" },
["l"] = { "n", "x" },
["-"] = { "n", "x" },
["+"] = { "n", "x" },
["gj"] = { "n", "x" },
["gk"] = { "n", "x" },
["<C-N>"] = { "n", "x" },
["<C-P>"] = { "n", "x" },
},
disabled_keys = {
["<Up>"] = { "" },
["<Down>"] = { "" },
["<Left>"] = { "" },
["<Right>"] = { "" },
},
},
},
}