nvim: Move the QF autocmd to it's ftplugin

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-23 18:19:01 +05:30
parent 5e5b331986
commit 7a9e5f3b7d
2 changed files with 2 additions and 5 deletions

View file

@ -1,3 +1,5 @@
" Always open QF window at the bottom
wincmd J
" Quit vim if the last window is qf
autocmd BufEnter <buffer> if winnr('$') < 2| q | endif

View file

@ -23,10 +23,5 @@ augroup UserStatusline
autocmd ColorScheme * hi User8 guifg=DarkYellow guibg=Black
augroup END
augroup QfAlwaysBottom
autocmd!
autocmd FileType qf wincmd J
augroup END
" Use completion-nvim in every buffer
autocmd BufEnter * lua require'completion'.on_attach()