Skip to content

Commit

Permalink
feat: load Refactor command on startup
Browse files Browse the repository at this point in the history
Don't wait until user calls `setup` to load the `Refactor` command
  • Loading branch information
TheLeoP committed Aug 18, 2023
1 parent 5359e74 commit f6d1931
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions lua/refactoring/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
local refactors = require("refactoring.refactor")
local Config = require("refactoring.config")
local command = require("refactoring.command")
local get_select_input = require("refactoring.get_select_input")
local async = require("plenary.async")

Expand All @@ -9,7 +8,6 @@ local M = {}
---@param config ConfigOpts
function M.setup(config)
Config.setup(config)
command.setup()
end

---@param name string|number
Expand Down
1 change: 1 addition & 0 deletions plugin/command.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("refactoring.command").setup()

0 comments on commit f6d1931

Please sign in to comment.