Skip to content

Commit

Permalink
overridable cursor position in minimal statusline
Browse files Browse the repository at this point in the history
  • Loading branch information
asher-gh authored and siduck committed Apr 2, 2023
1 parent 3e4706c commit 1b6ac5a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/nvchad_ui/statusline/minimal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ M.cwd = function()
) or ""
end


M.cursor_position = function()
gen_block("", "%l/%c", "%#St_Pos_sep#", "%#St_Pos_bg#", "%#St_Pos_txt#")
end

M.run = function()
local modules = require "nvchad_ui.statusline.minimal"

Expand All @@ -176,7 +181,7 @@ M.run = function()
modules.LSP_Diagnostics(),
modules.LSP_status() or "",
modules.cwd(),
gen_block("", "%l/%c", "%#St_Pos_sep#", "%#St_Pos_bg#", "%#St_Pos_txt#"),
modules.cursor_position()
}
end

Expand Down

0 comments on commit 1b6ac5a

Please sign in to comment.