Skip to content

Commit 7eecd43

Browse files
committed
fix: astrocore.utils moved to astrocore
1 parent 3203015 commit 7eecd43

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

lua/astroui/status/component.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
local M = {}
1212

13+
local astro = require "astrocore"
14+
local buf_utils = require "astrocore.buffer"
15+
local extend_tbl = astro.extend_tbl
16+
local is_available = astro.is_available
17+
1318
local ui = require "astroui"
1419
local config = ui.config.status
1520
local get_icon = ui.get_icon
@@ -19,11 +24,6 @@ local init = require "astroui.status.init"
1924
local provider = require "astroui.status.provider"
2025
local status_utils = require "astroui.status.utils"
2126

22-
local utils = require "astrocore.utils"
23-
local buf_utils = require "astrocore.buffer"
24-
local extend_tbl = utils.extend_tbl
25-
local is_available = utils.is_available
26-
2727
--- A Heirline component for filling in the empty space of the bar
2828
---@param opts? table options for configuring the other fields of the heirline component
2929
---@return table # The heirline component table

lua/astroui/status/init.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010

1111
local M = {}
1212

13+
local astro = require "astrocore"
1314
local ui = require "astroui"
1415
local config = ui.config.status
1516
local get_icon = ui.get_icon
17+
local extend_tbl = astro.extend_tbl
1618

1719
local provider = require "astroui.status.provider"
1820
local status_utils = require "astroui.status.utils"
1921

20-
local utils = require "astrocore.utils"
21-
local extend_tbl = utils.extend_tbl
22-
2322
--- An `init` function to build a set of children components for LSP breadcrumbs
2423
---@param opts? table # options for configuring the breadcrumbs (default: `{ max_depth = 5, separator = "  ", icon = { enabled = true, hl = false }, padding = { left = 0, right = 0 } }`)
2524
---@return function # The Heirline init function

lua/astroui/status/provider.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
local M = {}
1212

13+
local astro = require "astrocore"
14+
local extend_tbl = astro.extend_tbl
15+
local luv = vim.uv or vim.loop -- TODO: REMOVE WHEN DROPPING SUPPORT FOR Neovim v0.9
16+
1317
local ui = require "astroui"
1418
local config = ui.config.status
1519
local get_icon = ui.get_icon
1620
local condition = require "astroui.status.condition"
1721
local status_utils = require "astroui.status.utils"
1822

19-
local utils = require "astrocore.utils"
20-
local extend_tbl = utils.extend_tbl
21-
local luv = vim.uv or vim.loop -- TODO: REMOVE WHEN DROPPING SUPPORT FOR Neovim v0.9
22-
2323
--- A provider function for the fill string
2424
---@return string # the statusline string for filling the empty space
2525
-- @usage local heirline_component = { provider = require("astroui.status").provider.fill }

lua/astroui/status/utils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
local M = {}
1212

13+
local astro = require "astrocore"
1314
local ui = require "astroui"
1415
local config = ui.config.status
1516
local get_icon = ui.get_icon
16-
local utils = require "astrocore.utils"
17-
local extend_tbl = utils.extend_tbl
17+
local extend_tbl = astro.extend_tbl
1818

1919
--- Convert a component parameter table to a table that can be used with the component builder
2020
---@param opts? table a table of provider options

0 commit comments

Comments
 (0)