From 58b470132119f01883ef68411adf62f65d91a0e9 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 6 Jun 2025 17:29:57 +0900 Subject: updates --- .../lua/thesiahxyz/plugins/stay-centered.lua | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/stay-centered.lua') 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 = { + { + "zs", + function() + require("stay-centered").toggle() + end, + mode = { "n", "v" }, + desc = "Toggle stay-centered.nvim", + }, + }, +} -- cgit v1.2.3