mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
refactor(options): impl default 'titlestring' by format flags #30843
Problem: Unnecessary C impl of default 'titlestring'. Solutin: Define it using format flags.
This commit is contained in:
7
runtime/lua/vim/_meta/options.lua
generated
7
runtime/lua/vim/_meta/options.lua
generated
@ -7122,6 +7122,13 @@ vim.go.titleold = vim.o.titleold
|
||||
--- expanded according to the rules used for 'statusline'. If it contains
|
||||
--- an invalid '%' format, the value is used as-is and no error or warning
|
||||
--- will be given when the value is set.
|
||||
---
|
||||
--- The default behaviour is equivalent to:
|
||||
---
|
||||
--- ```vim
|
||||
--- set titlestring=%t%(\ %M%)%(\ \(%{expand(\"%:~:h\")}\)%)%a\ -\ Nvim
|
||||
--- ```
|
||||
---
|
||||
--- This option cannot be set in a modeline when 'modelineexpr' is off.
|
||||
---
|
||||
--- Example:
|
||||
|
Reference in New Issue
Block a user