mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-04 06:24:39 +02:00
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.
This commit is contained in:
parent
6a37171df6
commit
ed44b246b4
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,7 @@ function M.pretty_path(opts)
|
||||||
modified_hl = "MatchParen",
|
modified_hl = "MatchParen",
|
||||||
directory_hl = "",
|
directory_hl = "",
|
||||||
filename_hl = "Bold",
|
filename_hl = "Bold",
|
||||||
|
modified_sign = "",
|
||||||
}, opts or {})
|
}, opts or {})
|
||||||
|
|
||||||
return function(self)
|
return function(self)
|
||||||
|
@ -106,6 +107,7 @@ function M.pretty_path(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
if opts.modified_hl and vim.bo.modified then
|
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)
|
parts[#parts] = M.format(self, parts[#parts], opts.modified_hl)
|
||||||
else
|
else
|
||||||
parts[#parts] = M.format(self, parts[#parts], opts.filename_hl)
|
parts[#parts] = M.format(self, parts[#parts], opts.filename_hl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue