refactor(struct_tags): change way of importting deps

This commit is contained in:
Smirnov Oleksandr 2023-07-19 20:45:46 +03:00
parent a3201f701e
commit 70fece189d

View file

@ -1,11 +1,10 @@
local ts_utils = require "gopher._utils.ts"
local Job = require "plenary.job"
local c = require("gopher.config").commands
local u = require "gopher._utils"
local M = {} local M = {}
local function modify(...) local function modify(...)
local ts_utils = require "gopher._utils.ts"
local Job = require "plenary.job"
local c = require("gopher.config").config.commands
local u = require "gopher._utils"
local fpath = vim.fn.expand "%" ---@diagnostic disable-line: missing-parameter local fpath = vim.fn.expand "%" ---@diagnostic disable-line: missing-parameter
local ns = ts_utils.get_struct_node_at_pos(unpack(vim.api.nvim_win_get_cursor(0))) local ns = ts_utils.get_struct_node_at_pos(unpack(vim.api.nvim_win_get_cursor(0)))
if ns == nil then if ns == nil then