diff --git a/nvim/.config/nvim/after/ftplugin/qf.vim b/nvim/.config/nvim/after/ftplugin/qf.vim index c4833e7..3567815 100644 --- a/nvim/.config/nvim/after/ftplugin/qf.vim +++ b/nvim/.config/nvim/after/ftplugin/qf.vim @@ -1,3 +1,5 @@ +" Always open QF window at the bottom +wincmd J " Quit vim if the last window is qf autocmd BufEnter if winnr('$') < 2| q | endif diff --git a/nvim/.config/nvim/autocmd.vim b/nvim/.config/nvim/autocmd.vim index 51ce6c8..55badc4 100644 --- a/nvim/.config/nvim/autocmd.vim +++ b/nvim/.config/nvim/autocmd.vim @@ -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()