Skip to content

Commit

Permalink
feat: added title option to cmdline format
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 25, 2022
1 parent fba0b1d commit 42d771a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/noice/config/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function M.setup()
lang = format.lang or format.ft,
border = {
text = {
top = " " .. kind_cc .. " ",
top = format.title or (" " .. kind_cc .. " "),
},
},
win_options = {
Expand Down
3 changes: 0 additions & 3 deletions lua/noice/config/views.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ M.defaults = {
border = {
style = "rounded",
padding = { 0, 1 },
text = {
top = " Cmdline ",
},
},
win_options = {
winhighlight = {
Expand Down
1 change: 1 addition & 0 deletions lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ M.events = {
---@field icon? string
---@field icon_hl_group? string
---@field opts? NoiceViewOptions
---@field title? string
---@field lang? string

---@class NoiceCmdline
Expand Down

0 comments on commit 42d771a

Please sign in to comment.