Skip to content

Commit

Permalink
Use M.lualine instead of M.status (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-lynas authored Aug 23, 2024
2 parents 2fdec19 + 2bce03d commit 5a7f158
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The default values are shown in the `opts` table.
```lua
require("lualine").setup({
tabline = {
lualine_z = { require("grapple-line").status },
lualine_z = { require("grapple-line").lualine },
},
})
```
9 changes: 8 additions & 1 deletion lua/grapple-line.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,16 @@ local function make_names(files)
end
end

---Get the status string
---@deprecated
---See M.lualine
---@return string
function M.status()
return M.lualine()
end

---Get the lualine status string
---@return string
function M.lualine()
local files = get_grapple_files()
make_names(files)
return make_statusline(files)
Expand Down

0 comments on commit 5a7f158

Please sign in to comment.