diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-06 17:29:57 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-06 17:29:57 +0900 |
| commit | 58b470132119f01883ef68411adf62f65d91a0e9 (patch) | |
| tree | 307fbb954892feeea35e6fe343032e59893df714 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua | |
| parent | 7abaacdd7b7ebadaa6833c200eead4e84cb236d8 (diff) | |
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua new file mode 100644 index 0000000..b64880b --- /dev/null +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua @@ -0,0 +1,28 @@ +return { + "arnamak/stay-centered.nvim", + lazy = false, + config = function() + require("stay-centered").setup({ + -- The filetype is determined by the vim filetype, not the file extension. In order to get the filetype, open a file and run the command: + -- :lua print(vim.bo.filetype) + skip_filetypes = {}, + -- Set to false to disable by default + enabled = true, + -- allows scrolling to move the cursor without centering, default recommended + allow_scroll_move = true, + -- temporarily disables plugin on left-mouse down, allows natural mouse selection + -- try disabling if plugin causes lag, function uses vim.on_key + disable_on_mouse = false, + }) + end, + keys = { + { + "<leader>zs", + function() + require("stay-centered").toggle() + end, + mode = { "n", "v" }, + desc = "Toggle stay-centered.nvim", + }, + }, +} |
