Skip to content

Commit

Permalink
fix: core.norg -> core (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: d-r-a-b <>
  • Loading branch information
d-r-a-b authored Apr 19, 2023
1 parent 7d9f893 commit 787f95c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/integrations/telescope/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require("neorg.modules.base")
local module = neorg.modules.create("core.integrations.telescope")

module.setup = function()
return { success = true, requires = { "core.keybinds", "core.norg.dirman" } }
return { success = true, requires = { "core.keybinds", "core.dirman" } }
end

module.load = function()
Expand Down
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/neorg/find_linkable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local neorg_loaded, _ = pcall(require, "neorg.modules")
assert(neorg_loaded, "Neorg is not loaded - please make sure to load Neorg first")

local function get_current_workspace()
local dirman = neorg.modules.get_module("core.norg.dirman")
local dirman = neorg.modules.get_module("core.dirman")

if dirman then
local current_workspace = dirman.get_current_workspace()[2]
Expand Down
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/neorg/find_norg_files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assert(neorg_loaded, "Neorg is not loaded - please make sure to load Neorg first
--- Get a list of all norg files in current workspace. Returns { workspace_path, norg_files }
--- @return table?
local function get_norg_files()
local dirman = neorg.modules.get_module("core.norg.dirman")
local dirman = neorg.modules.get_module("core.dirman")

if not dirman then
return nil
Expand Down
4 changes: 2 additions & 2 deletions lua/telescope/_extensions/neorg/insert_file_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ assert(neorg_loaded, "Neorg is not loaded - please make sure to load Neorg first
--- Get a list of all norg files in current workspace. Returns { workspace_path, norg_files }
--- @return table
local function get_norg_files()
local dirman = neorg.modules.get_module("core.norg.dirman")
local dirman = neorg.modules.get_module("core.dirman")

if not dirman then
return nil
Expand All @@ -29,7 +29,7 @@ end
--- @return table
local function generate_links()
local res = {}
local dirman = neorg.modules.get_module("core.norg.dirman")
local dirman = neorg.modules.get_module("core.dirman")

if not dirman then
return nil
Expand Down
4 changes: 2 additions & 2 deletions lua/telescope/_extensions/neorg/insert_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ assert(neorg_loaded, "Neorg is not loaded - please make sure to load Neorg first
--- Get a list of all norg files in current workspace. Returns { workspace_path, norg_files }
--- @return table
local function get_norg_files()
local dirman = neorg.modules.get_module("core.norg.dirman")
local dirman = neorg.modules.get_module("core.dirman")

if not dirman then
return nil
Expand Down Expand Up @@ -60,7 +60,7 @@ end
--- @return table
local function generate_links()
local res = {}
local dirman = neorg.modules.get_module("core.norg.dirman")
local dirman = neorg.modules.get_module("core.dirman")

if not dirman then
return nil
Expand Down
6 changes: 3 additions & 3 deletions lua/telescope/_extensions/neorg/switch_workspace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ return function(options)
if not workspaces then
workspaces = {}

local workspaces_raw = neorg.modules.get_module("core.norg.dirman").get_workspaces()
local workspaces_raw = neorg.modules.get_module("core.dirman").get_workspaces()
for name, path in pairs(workspaces_raw) do
table.insert(workspaces, { name = name, path = path })
end
Expand Down Expand Up @@ -57,7 +57,7 @@ return function(options)
table.insert(lines, "Path:")
table.insert(lines, workspace.path)
table.insert(lines, "Files:")
local files = neorg.modules.get_module("core.norg.dirman").get_norg_files(workspace.name)
local files = neorg.modules.get_module("core.dirman").get_norg_files(workspace.name)
for _, file in ipairs(files) do
table.insert(lines, file)
end
Expand All @@ -71,7 +71,7 @@ return function(options)
local entry = state.get_selected_entry()
actions.close(prompt_bufnr)
if entry then
neorg.modules.get_module("core.norg.dirman").open_workspace(entry.value.name)
neorg.modules.get_module("core.dirman").open_workspace(entry.value.name)
end
end)
return true
Expand Down

0 comments on commit 787f95c

Please sign in to comment.