diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-04-21 10:24:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-21 02:24:07 +0000 |
| commit | 32e249dfa6fcf2d079df962473bd257bf04c2a16 (patch) | |
| tree | 1ee3c368c4f6a03ee060b38274d0c0241d66b559 /runtime/lua/vim | |
| parent | 7d3e275b070c74934b73c5e7149d96a87de5a8d1 (diff) | |
| download | rneovim-32e249dfa6fcf2d079df962473bd257bf04c2a16.tar.gz rneovim-32e249dfa6fcf2d079df962473bd257bf04c2a16.tar.bz2 rneovim-32e249dfa6fcf2d079df962473bd257bf04c2a16.zip | |
vim-patch:9.2.0371: filetype: ghostty config files are not recognized (#39267)
Problem: filetype: ghostty config files are not recognized
Solution: Detect ghostty configuration files as ghostty filetype,
include a simple ghostty filetype plugin (Bez Hermoso)
closes: vim/vim#20002
https://github.com/vim/vim/commit/b30803b231beea13e2efa42fefc04be71a4e9bb5
Co-authored-by: Bez Hermoso <bezalelhermoso@gmail.com>
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim')
| -rw-r--r-- | runtime/lua/vim/filetype.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 622fedb23a..c1edd148b5 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -565,6 +565,7 @@ local extension = { gel = 'gel', gmi = 'gemtext', gemini = 'gemtext', + ghostty = 'ghostty', gift = 'gift', prettierignore = 'gitignore', gleam = 'gleam', @@ -2487,6 +2488,8 @@ local pattern = { ['/mypy/config$'] = 'dosini', ['^${HOME}/%.config/notmuch/.*/config$'] = 'dosini', ['^${XDG_CONFIG_HOME}/notmuch/.*/config$'] = 'dosini', + ['/ghostty/config$'] = 'ghostty', + ['/com%.mitchellh%.ghostty/config$'] = 'ghostty', ['^${XDG_CONFIG_HOME}/git/config$'] = 'gitconfig', ['%.git/config%.worktree$'] = 'gitconfig', ['%.git/config$'] = 'gitconfig', @@ -2743,6 +2746,7 @@ local pattern = { ['^[a-zA-Z].*Properties%.'] = starsetf(detect.foam), ['^[a-zA-Z].*Properties$'] = detect.foam, ['/tmp/lltmp'] = starsetf('gedcom'), + ['/ghostty/themes/'] = starsetf('ghostty'), ['^gkrellmrc_.$'] = 'gkrellmrc', ['^${GNUPGHOME}/options$'] = 'gpg', ['/boot/grub/menu%.lst$'] = 'grub', |