mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
831 stars 33 forks source link

[Feature]: Add neovim to the Kitty terminal for window cutting #205

Closed mochouaaaaa closed 2 months ago

mochouaaaaa commented 2 months ago

Similar Issues

Description

In neovim, you can perform the window division of the kitty terminal

local mux = require("smart-splits.mux").get()
vim.keymap.set("n", cmd .. "-C-k>", function()
    mux.split_pane("up")
end)
vim.keymap.set("n", cmd .. "-C-j>", function()
    mux.split_pane("down")
end)
vim.keymap.set("n", cmd .. "-C-h>", function()
    mux.split_pane("left")
end)
vim.keymap.set("n", cmd .. "-C-l>", function()
    mux.split_pane("right")
end)