]> git.r.bdr.sh - rbdr/oleoboard.nvim/commitdiff
Board in reverse
authorRuben Beltran del Rio <redacted>
Mon, 1 Jul 2024 21:50:11 +0000 (23:50 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 1 Jul 2024 21:50:11 +0000 (23:50 +0200)
lua/oleoboard/board.lua

index 40c8d51effb2e311be93bc18052b1c7225de4a86..11b90db9f83c859d5846c698bb1c86849c311ff2 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)
+        table.insert(directories, parent_path .. '/' .. name, 1)
       end
     end
   else
       end
     end
   else