nvim: More QoL fixes
Anirudh Oppiliappan x@icyphox.sh
Mon, 02 Nov 2020 11:56:45 +0530
3 files changed,
17 insertions(+),
1 deletions(-)
M
config/nvim/init.vim
→
config/nvim/init.vim
@@ -57,6 +57,7 @@ set softtabstop=4 " backspace through spaces
set nocompatible set noshowmode set clipboard=unnamedplus +set hidden " wildcard ignores set wildignore+=.git,.hg,.svn
A
config/nvim/plugin/help.vim
@@ -0,0 +1,15 @@
+" Only apply to .txt files... +augroup HelpInTabs + autocmd! + autocmd BufEnter *.txt call HelpInNewTab() +augroup END + +" Only apply to help files... +function! HelpInNewTab () + if &buftype == 'help' && g:help_in_tabs + "Convert the help window to a tab... + execute "normal \<C-W>T" + endif +endfunction + +let g:help_in_tabs = 1
M
config/nvim/plugin/statusline.vim
→
config/nvim/plugin/statusline.vim
@@ -33,6 +33,6 @@ set statusline+=\ %f\
set statusline+=%m set statusline+=%= set statusline+=%#SecondaryBlock# -set statusline+=\ %l\ +set statusline+=\ %l,%c\ set statusline+=%#PrimaryBlock# set statusline+=%{&filetype}