Skip to content

Commit

Permalink
chore(completion): avoid shadowing links variable
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed May 21, 2024
1 parent 93aed5b commit 8ce60e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neorg/modules/core/completion/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ link completions are smart about closing `:` and `}`.
local neorg = require("neorg.core")
local Path = require("pathlib")
local log, modules, utils = neorg.log, neorg.modules, neorg.utils
local dirutils, dirman, links, treesitter
local dirutils, dirman, link_utils, treesitter

local module = modules.create("core.completion")

Expand Down Expand Up @@ -89,7 +89,7 @@ module.private = {
---@param source number | string | PathlibPath bufnr or file path
---@param link_type "generic" | "definition" | "footnote" | string
get_linkables = function(source, link_type)
local query_str = links.get_link_target_query_string(link_type)
local query_str = link_utils.get_link_target_query_string(link_type)
local norg_parser
local iter_src
if type(source) ~= "string" and type(source) ~= "number" then
Expand Down Expand Up @@ -255,7 +255,7 @@ module.load = function()

dirutils = module.required["core.dirman.utils"]
dirman = module.required["core.dirman"]
links = module.required["core.links"]
link_utils = module.required["core.links"]
treesitter = module.required["core.integrations.treesitter"]

-- Set a special function in the integration module to allow it to communicate with us
Expand Down

0 comments on commit 8ce60e6

Please sign in to comment.