diff --git a/lua/data/keys.lua b/lua/data/keys.lua index a25030c..e2a512b 100644 --- a/lua/data/keys.lua +++ b/lua/data/keys.lua @@ -1331,15 +1331,15 @@ M.smearcursor = function() :map('uW') end -M.snacksterm = { - -- { -- Toggle Terminal - -- lhs = '', - -- rhs = function() - -- require('snacks.terminal').toggle() - -- end, - -- desc = 'Toggle Terminal', - -- }, -} +M.smart_splits = function() + -- Configure smart-splits keymaps + vim.keymap.set('n', '', require('smart-splits').move_cursor_left) + vim.keymap.set('n', '', require('smart-splits').move_cursor_down) + vim.keymap.set('n', '', require('smart-splits').move_cursor_up) + vim.keymap.set('n', '', require('smart-splits').move_cursor_right) +end + +M.snacksterm = {} M.splitjoin = { toggle = 'gJ', diff --git a/lua/plugins/terminal.lua b/lua/plugins/terminal.lua index ef996e5..456c483 100644 --- a/lua/plugins/terminal.lua +++ b/lua/plugins/terminal.lua @@ -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',