From 68ccd20e948eefbfdab0a2f73924b840c851b9a5 Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Sun, 13 Nov 2022 14:09:59 +0200 Subject: [PATCH] refactor(comment): move require to a function --- lua/gopher/comment.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/gopher/comment.lua b/lua/gopher/comment.lua index 41e3f75..0a146fb 100644 --- a/lua/gopher/comment.lua +++ b/lua/gopher/comment.lua @@ -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)