LCOV - code coverage report
Current view: top level - /lua/yoda - commands.lua (source / functions) Coverage Total Hit
Test: lcov.info Lines: 100.0 % 7 7
Test Date: 2026-04-14 10:33:13 Functions: - 0 0

            Line data    Source code
       1              : -- lua/yoda/commands.lua
       2              : -- Command registration - loads all command modules
       3              : 
       4              : -- Load command modules individually so one failure doesn't cascade to the rest.
       5           11 : local command_modules = {
       6              :   "yoda.commands.lazy",
       7              :   "yoda.commands.dev_setup",
       8              :   "yoda.commands.diagnostics",
       9              :   "yoda.commands.formatting",
      10              :   "yoda.commands.lsp",
      11              :   "yoda.commands.buffer",
      12              : }
      13              : 
      14           77 : for _, mod in ipairs(command_modules) do
      15           66 :   local ok, result = pcall(require, mod)
      16           66 :   if not ok then
      17              :     vim.notify("[yoda] Failed to load " .. mod .. ": " .. tostring(result), vim.log.levels.WARN)
      18              :   else
      19           66 :     local ok_setup, err_setup = pcall(result.setup)
      20           66 :     if not ok_setup then
      21              :       vim.notify("[yoda] Failed to setup " .. mod .. ": " .. tostring(err_setup), vim.log.levels.WARN)
      22              :     end
      23              :   end
      24           11 : end
        

Generated by: LCOV version 2.0-1