cleanup: [nvim] statusline config + update buffer mappings
This commit is contained in:
parent
e7dd076a68
commit
0dad71d5b7
@ -106,20 +106,6 @@ set termguicolors
|
|||||||
" Colorscheme
|
" Colorscheme
|
||||||
colorscheme polyjuice
|
colorscheme polyjuice
|
||||||
|
|
||||||
" Statusline
|
|
||||||
set noshowmode
|
|
||||||
source $XDG_CONFIG_HOME/nvim/statusline.vim
|
|
||||||
|
|
||||||
augroup statusline
|
|
||||||
autocmd!
|
|
||||||
autocmd VimEnter *
|
|
||||||
\ call UpdateInactiveWindows()
|
|
||||||
autocmd VimEnter,WinEnter,BufWinEnter *
|
|
||||||
\ call RefreshStatusLine('active')
|
|
||||||
autocmd WinLeave *
|
|
||||||
\ call RefreshStatusLine('inactive')
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
"" Text, tab and indent
|
"" Text, tab and indent
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Do not use spaces instead of tabs
|
" Do not use spaces instead of tabs
|
||||||
@ -153,6 +139,19 @@ autocmd BufWritePre * %s/\s\+$//e
|
|||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"Always show the status line
|
"Always show the status line
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
set noshowmode
|
||||||
|
|
||||||
|
source $XDG_CONFIG_HOME/nvim/statusline.vim
|
||||||
|
|
||||||
|
augroup statusline
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter *
|
||||||
|
\ call UpdateInactiveWindows()
|
||||||
|
autocmd VimEnter,WinEnter,BufWinEnter *
|
||||||
|
\ call RefreshStatusLine('active')
|
||||||
|
autocmd WinLeave *
|
||||||
|
\ call RefreshStatusLine('inactive')
|
||||||
|
augroup END
|
||||||
|
|
||||||
"" Macros
|
"" Macros
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -160,8 +159,8 @@ set laststatus=2
|
|||||||
noremap <leader>s :source ~/.config/nvim/init.vim <CR>
|
noremap <leader>s :source ~/.config/nvim/init.vim <CR>
|
||||||
|
|
||||||
" Circle through buffers
|
" Circle through buffers
|
||||||
noremap <leader>n :bn
|
noremap <leader>n :bn<CR>
|
||||||
noremap <leader>p :bp
|
noremap <leader>p :bp<CR>
|
||||||
|
|
||||||
" Clear the search highlight
|
" Clear the search highlight
|
||||||
noremap <leader>q :nohl<CR>
|
noremap <leader>q :nohl<CR>
|
||||||
|
Reference in New Issue
Block a user