refactor(comment): move require to a function
This commit is contained in:
parent
f835464d7f
commit
68ccd20e94
1 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
local ts_utils = require "gopher._utils.ts"
|
||||
|
||||
local function generate(row, col)
|
||||
local ts_utils = require "gopher._utils.ts"
|
||||
local comment, ns = nil, nil
|
||||
|
||||
ns = ts_utils.get_package_node_at_pos(row, col, nil, false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue