mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 11:44:10 -05:00
Fix help in small windows + set minimum widthxheight + more utf-8 in lightline
This commit is contained in:
parent
1f10a4bd20
commit
95a0548ebc
3 changed files with 4 additions and 2 deletions
|
@ -52,7 +52,7 @@ endif
|
|||
autocmd BufEnter,FileType help* setlocal nocursorline "remove the horizontal cursor line
|
||||
|
||||
"load help in an 80 char vertical split if the window is wider than 140 characters, otherwise load horizontally at 33% of the height
|
||||
autocmd BufEnter,FileType help* if (&columns >= 140)|wincmd L|vertical resize 80|else|wincmd j|sp|wincmd =|q|wincmd k|endif
|
||||
autocmd BufEnter,FileType help* if (winwidth(0) >= 140)|wincmd L|vertical resize 80|endif
|
||||
|
||||
"settings for buffers in diff mode
|
||||
autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif
|
||||
|
|
|
@ -286,7 +286,7 @@ scriptencoding utf-8
|
|||
let g:vimfiler_force_overwrite_statusline = 0
|
||||
|
||||
function! LLModified()
|
||||
return &ft =~ 'help' ? '' : &modified ? '+' : &modifiable ? '' : '-'
|
||||
return &ft =~ 'help' ? '' : &modified ? '💾 ' : &modifiable ? '' : '-'
|
||||
endfunction
|
||||
|
||||
function! LLReadonly()
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
|
||||
"USER INTERFACE: {{{
|
||||
set laststatus=2 showcmd statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "statusline init and config
|
||||
set winheight=10 winminheight=5 "set the minimum window height to 10 lines
|
||||
set winwidth=10 winminwidth=5 "set the minimum window width to 10 columns
|
||||
set noshowmode "don't display mode information handled by lightline
|
||||
set lazyredraw "don't redraw the screen while macros are executing
|
||||
set noequalalways "don't force splits to be equal in size when closing or opening one
|
||||
|
|
Loading…
Reference in a new issue