mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
ddda5e0a48
Help outlines, invoked by `gO`, displays the help section titles in the location list window. This feature is implemented by setting the buffer lines after opening the window, but this implementation breaks the assumption that the quickfix window texts are consistently constructed by the quickfix list items. I think we can use the conceal feature here. Using conceal here improves interoperability between quickfix plugins, and also simplifies the outline implementation. Originally reported at https://github.com/itchyny/vim-qfedit/issues/12
19 lines
508 B
VimL
19 lines
508 B
VimL
" Vim filetype plugin file
|
|
" Language: Vim's quickfix window
|
|
" Maintainer: Lech Lorens <Lech.Lorens@gmail.com>
|
|
" Last Change: 2019 Jul 15
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
|
|
" Don't load another plugin for this buffer
|
|
let b:did_ftplugin = 1
|
|
|
|
if !get(g:, 'qf_disable_statusline')
|
|
let b:undo_ftplugin = "set stl<"
|
|
|
|
" Display the command that produced the list in the quickfix window:
|
|
setlocal stl=%t%{exists('w:quickfix_title')?\ '\ '.w:quickfix_title\ :\ ''}\ %=%-15(%l,%c%V%)\ %P
|
|
endif
|