diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua')
| -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 |
