mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Add vim header to generated conf file
This commit is contained in:
@@ -104,7 +104,7 @@ def render_group(a, group):
|
|||||||
|
|
||||||
|
|
||||||
def as_conf_file(all_options):
|
def as_conf_file(all_options):
|
||||||
ans = []
|
ans = ['# vim:fileencoding=utf-8:ft=conf:foldmethod=marker', '']
|
||||||
a = ans.append
|
a = ans.append
|
||||||
current_group = None
|
current_group = None
|
||||||
all_options = list(all_options)
|
all_options = list(all_options)
|
||||||
@@ -115,7 +115,7 @@ def as_conf_file(all_options):
|
|||||||
if current_group:
|
if current_group:
|
||||||
if current_group.end_text:
|
if current_group.end_text:
|
||||||
a(''), a(current_group.end_text)
|
a(''), a(current_group.end_text)
|
||||||
a('# }}}')
|
a('# }}}'), a('')
|
||||||
|
|
||||||
current_group = opt.group
|
current_group = opt.group
|
||||||
render_group(a, current_group)
|
render_group(a, current_group)
|
||||||
|
|||||||
Reference in New Issue
Block a user