window-splits.lua (520B)
1 return { 2 "AstroNvim/astrocore", 3 ---@type AstroCoreOpts 4 opts = { 5 mappings = { 6 n = { 7 -- Override the backslash and pipe defaults 8 ["|"] = { 9 function() 10 vim.cmd "vsplit" 11 vim.cmd "enew" 12 end, 13 desc = "Vertical split with new buffer", 14 }, 15 ["\\"] = { 16 function() 17 vim.cmd "split" 18 vim.cmd "enew" 19 end, 20 desc = "Horizontal split with new buffer", 21 }, 22 }, 23 }, 24 }, 25 }