diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-07-05 22:19:53 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-07-05 22:19:53 +0900 |
| commit | dc8ae0ed238a09dbd33d112452506fd9bc05dcfc (patch) | |
| tree | caa9ea866c8c415fb9afb93a19e86ab9a3a05d69 /ar/.config/TheSiahxyz | |
| parent | ace7642849316e87adc68ffc9e2b26434e4b6bae (diff) | |
updates
Diffstat (limited to 'ar/.config/TheSiahxyz')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua | 3 | ||||
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua index 3ff7b80..500abf0 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/keymaps.lua @@ -529,7 +529,8 @@ end, { desc = "Remove current file" }) -- Scripts vim.keymap.set("n", "<leader>rr", function() vim.cmd("w") - vim.cmd("split | resize 10 | terminal compiler " .. vim.fn.expand("%:p")) + local file = vim.fn.shellescape(vim.fn.expand("%:p")) + vim.cmd("split | resize 10 | terminal compiler " .. file) end, { noremap = true, silent = true, desc = "Run compiler interactively" }) vim.api.nvim_set_keymap( "n", diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua index 6cf68fa..a2d5aa2 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/stay-centered.lua @@ -1,13 +1,14 @@ return { "arnamak/stay-centered.nvim", lazy = false, + ft = { "markdown", "ipynb" }, 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 = false, + 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 |
