diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2026-04-13 05:48:12 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2026-04-13 05:48:12 +0800 |
| commit | 5d279e8dfc0898f00618a076fc68d756661cf6cf (patch) | |
| tree | 5e49c51bf848aa2c2d407f2e12134f27ca76091a /home/xyz | |
| parent | d46401b9cd429d31937ddb90a7600bfebfcafbaa (diff) | |
fix: nvim 0.12.1 config statusline need = at first
Before nvim 0.12.1, statusline+=%< as first works, now it needs =
instead of += else it will show two statuline. statusline+=%< as first
seems still work with new version of vim. It maybe because now nvim `:
set statusline?` is not empty but at vim it is empty
Diffstat (limited to 'home/xyz')
| -rw-r--r-- | home/xyz/.config/nvim/init.vim | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index cd1a4004..36e26156 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -217,8 +217,16 @@ map <leader>* /\*\*.*\*\*<CR> " toggle markdown folding and re-edit current file map <leader>m :call Md_toggle_fold()<CR> -" default statusline:set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P -set statusline+=%< +" Default statusline shows in the `:h statusline` first example: +" set statusline=%<%f\ %h%w%m%r%=%-14.(%l,%c%V%)\ %P +" +" nvim `:set statusline?` shows more stuffs, not sure why +" +" Before nvim 0.12.1, statusline+=%< as first works, now it needs = instead of +" += else it will show two statuline. statusline+=%< as first seems still work +" with new version of vim. It maybe because now nvim `:set statusline?` is not +" empty but at vim it is empty +set statusline=%< set statusline+=%f " %F or 1CTRL+G to show full path set statusline+=\ %m set statusline+=%= |
