From: Ruben Beltran del Rio Date: Mon, 1 Jul 2024 21:52:37 +0000 (+0200) Subject: Use leader X-Git-Url: https://git.r.bdr.sh/rbdr/oleoboard.nvim/commitdiff_plain/29a0f45b44b5db264ef0d19bbcb030e2bed90209 Use leader --- diff --git a/README.md b/README.md index 3f7d5c1..13a051f 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,10 @@ require('lazy').setup({ ## Default Keybinds -- `bb`, `:OleoBoardToggle`, Opens and Closes the kanban board -- `bl`, `:OleoBoardMoveEntryRight`, Moves the current entry to the right -- `bL`, `:OleoBoardMoveColumnRight`, Moves the current column to the right -- `bh`, `:OleoBoardMoveEntryLeft`, Moves the current entry to the left -- `bH`, `:OleoBoardMoveColumnLeft`, Moves the current column to the left +- `bb`, `:OleoBoardToggle`, Opens and Closes the kanban board +- `bl`, `:OleoBoardMoveEntryRight`, Moves the current entry to the right +- `bL`, `:OleoBoardMoveColumnRight`, Moves the current column to the right +- `bh`, `:OleoBoardMoveEntryLeft`, Moves the current entry to the left +- `bH`, `:OleoBoardMoveColumnLeft`, Moves the current column to the left [oil]: https://github.com/stevearc/oil.nvim diff --git a/lua/oleoboard/board.lua b/lua/oleoboard/board.lua index 11b90db..14735fb 100644 --- a/lua/oleoboard/board.lua +++ b/lua/oleoboard/board.lua @@ -20,7 +20,7 @@ local function get_directories(parent_path) local name, type = vim.loop.fs_scandir_next(directory_iterator) if not name then break end if type == "directory" then - table.insert(directories, parent_path .. '/' .. name, 1) + table.insert(directories, 1, parent_path .. '/' .. name) end end else diff --git a/lua/oleoboard/keybinds.lua b/lua/oleoboard/keybinds.lua index bbb7c60..1678035 100644 --- a/lua/oleoboard/keybinds.lua +++ b/lua/oleoboard/keybinds.lua @@ -10,11 +10,11 @@ local Keybinds = {} function Keybinds.bind() local api = vim.api - api.nvim_set_keymap('n', 'bb', 'OleoBoardToggle', { noremap = true, silent = true }) - api.nvim_set_keymap('n', 'bl', 'OleoBoardMoveEntryRight', { noremap = true, silent = true }) - api.nvim_set_keymap('n', 'bh', 'OleoBoardMoveEntryLeft', { noremap = true, silent = true }) - api.nvim_set_keymap('n', 'bL', 'OleoBoardMoveColumnRight', { noremap = true, silent = true }) - api.nvim_set_keymap('n', 'bH', 'OleoBoardMoveColumnLeft', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'bb', 'OleoBoardToggle', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'bl', 'OleoBoardMoveEntryRight', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'bh', 'OleoBoardMoveEntryLeft', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'bL', 'OleoBoardMoveColumnRight', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'bH', 'OleoBoardMoveColumnLeft', { noremap = true, silent = true }) end return Keybinds