Skip to content

Commit

Permalink
fix: fetched get_language_list from utils (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
Groctel committed Aug 1, 2023
1 parent 8529310 commit 3db1001
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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 @@ -11,7 +11,7 @@ or [`nvim-compe`](@core.integrations.nvim-compe)) to complete setup.
--]]

local neorg = require("neorg.core")
local lib, log, modules = neorg.lib, neorg.log, neorg.modules
local log, modules, utils = neorg.log, neorg.modules, neorg.utils

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

Expand Down Expand Up @@ -124,7 +124,7 @@ module.public = {
regex = "code%s+%w*",
-- No node variable, we don't need that sort of check here

complete = lib.get_language_list(true),
complete = utils.get_language_list(true),

-- Extra options
options = {
Expand All @@ -137,7 +137,7 @@ module.public = {
{
regex = "export%s+%w*",

complete = lib.get_language_list(true),
complete = utils.get_language_list(true),

options = {
type = "Language",
Expand Down
4 changes: 2 additions & 2 deletions lua/neorg/modules/core/syntax/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Any edit is assumed to break this module.
--]]

local neorg = require("neorg.core")
local lib, modules, utils = neorg.lib, neorg.modules, neorg.utils
local modules, utils = neorg.modules, neorg.utils

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

Expand Down Expand Up @@ -487,7 +487,7 @@ module.load = function()

-- Load available regex languages
-- get the available regex files for the current session
module.private.available_languages = lib.get_language_list(false)
module.private.available_languages = utils.get_language_list(false)
end

module.on_event = function(event)
Expand Down

0 comments on commit 3db1001

Please sign in to comment.