diff --git a/lua/plugins/smart-splits.lua b/lua/plugins/smart-splits.lua index cf4a09a..7a872c4 100644 --- a/lua/plugins/smart-splits.lua +++ b/lua/plugins/smart-splits.lua @@ -3,20 +3,24 @@ return { lazy = false, keys = { -- resizing splits - { "n", "", ":lua require('smart-splits').resize_left()" }, - { "n", "", ":lua require('smart-splits').resize_down()" }, - { "n", "", ":lua require('smart-splits').resize_up()" }, - { "n", "", ":lua require('smart-splits').resize_right()" }, + { "", ":lua require('smart-splits').resize_left()", desc = "smart split: resize left" }, + { "", ":lua require('smart-splits').resize_down()", desc = "smart split: resize down" }, + { "", ":lua require('smart-splits').resize_up()", desc = "smart split: resize up" }, + { "", ":lua require('smart-splits').resize_right()", desc = "smart split: resize right" }, -- moving between splits - { "n", "", ":lua require('smart-splits').move_cursor_left()" }, - { "n", "", ":lua require('smart-splits').move_cursor_down()" }, - { "n", "", ":lua require('smart-splits').move_cursor_up()" }, - { "n", "", ":lua require('smart-splits').move_cursor_right()" }, - { "n", "", ":lua require('smart-splits').move_cursor_previous()" }, + { "", ":lua require('smart-splits').move_cursor_left()", desc = "smart split: move cursor left" }, + { "", ":lua require('smart-splits').move_cursor_down()", desc = "smart split: move cursor up" }, + { "", ":lua require('smart-splits').move_cursor_up()", desc = "smart split: move cursor up" }, + { "", ":lua require('smart-splits').move_cursor_right()", desc = "smart split: move cursor right" }, + { + "", + ":lua require('smart-splits').move_cursor_previous()", + desc = "smart split: move cursor to previous", + }, -- swapping buffers between windows - { "n", "a", ":lua require('smart-splits').swap_buf_left()" }, - { "n", "o", ":lua require('smart-splits').swap_buf_down()" }, - { "n", "e", ":lua require('smart-splits').swap_buf_up()" }, - { "n", "u", ":lua require('smart-splits').swap_buf_right()" }, + { "a", ":lua require('smart-splits').swap_buf_left()", desc = "smart split: swap left" }, + { "o", ":lua require('smart-splits').swap_buf_down()", desc = "smart split: swap down" }, + { "e", ":lua require('smart-splits').swap_buf_up()", desc = "smart split: swap up" }, + { "u", ":lua require('smart-splits').swap_buf_right()", desc = "smart split: swap right" }, }, }