From ed44b246b443939ca7755bef1522c68df94c2a76 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Tue, 19 Mar 2024 23:28:31 +0200 Subject: [PATCH] feat(lualine): add `modified_sign` to `pretty_path` (#2754) Closes #2752 I left the initial text blank on purpose, so that it doesn't change anything stylistically and let the user decide what he wants to add in his personal configuration for `lualine` spec. --- lua/lazyvim/util/lualine.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/util/lualine.lua b/lua/lazyvim/util/lualine.lua index d7789b57..b4ffd633 100644 --- a/lua/lazyvim/util/lualine.lua +++ b/lua/lazyvim/util/lualine.lua @@ -80,6 +80,7 @@ function M.pretty_path(opts) modified_hl = "MatchParen", directory_hl = "", filename_hl = "Bold", + modified_sign = "", }, opts or {}) return function(self) @@ -106,6 +107,7 @@ function M.pretty_path(opts) end if opts.modified_hl and vim.bo.modified then + parts[#parts] = parts[#parts] .. opts.modified_sign parts[#parts] = M.format(self, parts[#parts], opts.modified_hl) else parts[#parts] = M.format(self, parts[#parts], opts.filename_hl)