diff --git a/lua/sloth-flake/command/list.lua b/lua/sloth-flake/command/list.lua index 2380222..a1eed0e 100644 --- a/lua/sloth-flake/command/list.lua +++ b/lua/sloth-flake/command/list.lua @@ -4,17 +4,17 @@ local utils = require 'sloth-flake.utils' return function(args) local filter = args[1] or "all" local deps = vim.iter(Dep.all()):map(function(_, dep) - return dep:name() + return dep.name end) if filter == "all" then -- Nothing to do elseif filter == "loaded" then deps = deps:filter(function(dep) - return Dep.get(dep):is_loaded() + return Dep.get(dep).is_loaded end) elseif filter == "notloaded" then deps = deps:filter(function(dep) - return not Dep.get(dep):is_loaded() + return not Dep.get(dep).is_loaded end) else utils.error([[No Sloth list filter "%s".]], cmd)