]> git.r.bdr.sh - rbdr/oleoboard.nvim/blobdiff - lua/oleoboard/board.lua
Use leader
[rbdr/oleoboard.nvim] / lua / oleoboard / board.lua
index 11b90db9f83c859d5846c698bb1c86849c311ff2..14735fb5942d717c680eef70833f1b180bd8c939 100644 (file)
@@ -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
       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
       end
     end
   else