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')
|
||||
end
|
||||
|
||||
M.snacksterm = {
|
||||
-- { -- Toggle Terminal
|
||||
-- lhs = '<C-/>',
|
||||
-- rhs = function()
|
||||
-- require('snacks.terminal').toggle()
|
||||
-- end,
|
||||
-- desc = 'Toggle Terminal',
|
||||
-- },
|
||||
}
|
||||
M.smart_splits = function()
|
||||
-- Configure smart-splits keymaps
|
||||
vim.keymap.set('n', '<C-h>', require('smart-splits').move_cursor_left)
|
||||
vim.keymap.set('n', '<C-j>', require('smart-splits').move_cursor_down)
|
||||
vim.keymap.set('n', '<C-k>', require('smart-splits').move_cursor_up)
|
||||
vim.keymap.set('n', '<C-l>', require('smart-splits').move_cursor_right)
|
||||
end
|
||||
|
||||
M.snacksterm = {}
|
||||
|
||||
M.splitjoin = {
|
||||
toggle = 'gJ',
|
||||
|
||||
@@ -10,6 +10,9 @@ return {
|
||||
lazy = false,
|
||||
build = require('data.types').smart_splits.build(),
|
||||
-- cond = not require('data.func').is_ghostty(),
|
||||
keys = function()
|
||||
require('data.keys').smart_splits()
|
||||
end,
|
||||
},
|
||||
{ -- Kitty-Runner
|
||||
'jghauser/kitty-runner.nvim',
|
||||
|
||||
Reference in New Issue
Block a user