I think setting the statusline in default ftplugin causes many problems.
This is a patch to introduce a global flag to enable the statusline in the ftplugin. What do you think @llorens @chrisbra?
Related comment: #4278 (comment).
https://github.com/vim/vim/pull/4662
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
I second this PR, because the default qf filetype makes life nice statusline plugins unnecessarily harder than it actually should be.
@chrisbra commented on this pull request.
> @@ -10,7 +10,9 @@ endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 -let b:undo_ftplugin = "set stl<" +if get(g:, 'qf_default_statusline')
Please revert the condition, so that the default does not change:
if !get(g:, 'qf_disable_statusline')
Also, please add a short paragraph at syntax.txt describing the variable :h ft-qf-syntax.
@itchyny pushed 2 commits.
—
You are receiving this because you are subscribed to this thread.
@itchyny commented on this pull request.
> @@ -10,7 +10,9 @@ endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 -let b:undo_ftplugin = "set stl<" +if get(g:, 'qf_default_statusline')
Thank you for comment, I updated the patch.
Merging #4662 into master will increase coverage by
4.46%.
The diff coverage isn/a.
@@ Coverage Diff @@ ## master #4662 +/- ## ========================================== + Coverage 76.88% 81.35% +4.46% ========================================== Files 111 114 +3 Lines 144307 145122 +815 ========================================== + Hits 110956 118059 +7103 + Misses 33351 27063 -6288
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/profiler.c | 92.69% <0%> (ø) |
|
| src/testing.c | 89.97% <0%> (ø) |
|
| src/highlight.c | 78.11% <0%> (ø) |
|
| src/xxd/xxd.c | 74.79% <0%> (+0.07%) |
⬆️ |
| src/libvterm/t/harness.c | 88.59% <0%> (+0.47%) |
⬆️ |
| src/if_tcl.c | 86.42% <0%> (+0.54%) |
⬆️ |
| src/if_ruby.c | 91.23% <0%> (+0.87%) |
⬆️ |
| src/if_lua.c | 88.19% <0%> (+1.04%) |
⬆️ |
| src/if_py_both.h | 76.78% <0%> (+1.16%) |
⬆️ |
| src/regexp_nfa.c | 91.76% <0%> (+1.24%) |
⬆️ |
| ... and 100 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 4e63f94...15bbe64. Read the comment docs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.![]()
I'll include it. But put the docs with the filetype docs, not the syntax docs.
Closed #4662.