mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
vim: update configuration to include theme files (#4893)
Extends vim validation and file type detection to theme files cc @gpanders @beaumccartney (as you were involved on the previous vim PR)
This commit is contained in:
@ -3,7 +3,16 @@ const Config = @import("Config.zig");
|
|||||||
|
|
||||||
/// This is the associated Vim file as named by the variable.
|
/// This is the associated Vim file as named by the variable.
|
||||||
pub const syntax = comptimeGenSyntax();
|
pub const syntax = comptimeGenSyntax();
|
||||||
pub const ftdetect = "au BufRead,BufNewFile */ghostty/config set ft=ghostty\n";
|
pub const ftdetect =
|
||||||
|
\\" Vim filetype detect file
|
||||||
|
\\" Language: Ghostty config file
|
||||||
|
\\" Maintainer: Ghostty <https://github.com/ghostty-org/ghostty>
|
||||||
|
\\"
|
||||||
|
\\" THIS FILE IS AUTO-GENERATED
|
||||||
|
\\
|
||||||
|
\\au BufRead,BufNewFile */ghostty/config,*/ghostty/themes/* set ft=ghostty
|
||||||
|
\\
|
||||||
|
;
|
||||||
pub const ftplugin =
|
pub const ftplugin =
|
||||||
\\" Vim filetype plugin file
|
\\" Vim filetype plugin file
|
||||||
\\" Language: Ghostty config file
|
\\" Language: Ghostty config file
|
||||||
@ -31,13 +40,19 @@ pub const ftplugin =
|
|||||||
\\
|
\\
|
||||||
;
|
;
|
||||||
pub const compiler =
|
pub const compiler =
|
||||||
|
\\" Vim compiler file
|
||||||
|
\\" Language: Ghostty config file
|
||||||
|
\\" Maintainer: Ghostty <https://github.com/ghostty-org/ghostty>
|
||||||
|
\\"
|
||||||
|
\\" THIS FILE IS AUTO-GENERATED
|
||||||
|
\\
|
||||||
\\if exists("current_compiler")
|
\\if exists("current_compiler")
|
||||||
\\ finish
|
\\ finish
|
||||||
\\endif
|
\\endif
|
||||||
\\let current_compiler = "ghostty"
|
\\let current_compiler = "ghostty"
|
||||||
\\
|
\\
|
||||||
\\CompilerSet makeprg=ghostty\ +validate-config
|
\\CompilerSet makeprg=ghostty\ +validate-config\ --config-file=%:S
|
||||||
\\CompilerSet errorformat=%f:%l:%m
|
\\CompilerSet errorformat=%f:%l:%m,%m
|
||||||
\\
|
\\
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user