fix(smart-splits): properly execute the smart-splits keymap overrides
This commit is contained in:
+9
-9
@@ -1331,15 +1331,15 @@ M.smearcursor = function()
|
|||||||
:map('<leader>uW')
|
:map('<leader>uW')
|
||||||
end
|
end
|
||||||
|
|
||||||
M.snacksterm = {
|
M.smart_splits = function()
|
||||||
-- { -- Toggle Terminal
|
-- Configure smart-splits keymaps
|
||||||
-- lhs = '<C-/>',
|
vim.keymap.set('n', '<C-h>', require('smart-splits').move_cursor_left)
|
||||||
-- rhs = function()
|
vim.keymap.set('n', '<C-j>', require('smart-splits').move_cursor_down)
|
||||||
-- require('snacks.terminal').toggle()
|
vim.keymap.set('n', '<C-k>', require('smart-splits').move_cursor_up)
|
||||||
-- end,
|
vim.keymap.set('n', '<C-l>', require('smart-splits').move_cursor_right)
|
||||||
-- desc = 'Toggle Terminal',
|
end
|
||||||
-- },
|
|
||||||
}
|
M.snacksterm = {}
|
||||||
|
|
||||||
M.splitjoin = {
|
M.splitjoin = {
|
||||||
toggle = 'gJ',
|
toggle = 'gJ',
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ return {
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
build = require('data.types').smart_splits.build(),
|
build = require('data.types').smart_splits.build(),
|
||||||
-- cond = not require('data.func').is_ghostty(),
|
-- cond = not require('data.func').is_ghostty(),
|
||||||
|
keys = function()
|
||||||
|
require('data.keys').smart_splits()
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{ -- Kitty-Runner
|
{ -- Kitty-Runner
|
||||||
'jghauser/kitty-runner.nvim',
|
'jghauser/kitty-runner.nvim',
|
||||||
|
|||||||
Reference in New Issue
Block a user