Mercurial > vim
changeset 34930:6ba2db6b7808 v9.1.0323
patch 9.1.0323: filetype: cabal config files may not be recognized
Commit: https://github.com/vim/vim/commit/799dedec0e959d7a18df8a06d497770706d1627c
Author: Wu, Zhenyu <wuzhenyu@ustc.edu>
Date: Sun Apr 14 20:22:19 2024 +0200
patch 9.1.0323: filetype: cabal config files may not be recognized
Problem: filetype: cabal config files may not be recognized
Solution: Change filetype pattern to '*/{,.}cabal/config'
(Wu Zhenyu)
closes: #14498
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 14 Apr 2024 20:30:05 +0200 |
parents | f3340c5a0dc5 |
children | 428dceb57eff |
files | runtime/filetype.vim src/version.c |
diffstat | 2 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -975,11 +975,7 @@ au BufNewFile,BufRead *.hs,*.hsc,*.hs-bo au BufNewFile,BufRead *.lhs setf lhaskell au BufNewFile,BufRead *.chs setf chaskell au BufNewFile,BufRead cabal.project setf cabalproject -au BufNewFile,BufRead $HOME/.cabal/config setf cabalconfig -if exists('$XDG_CONFIG_HOME') - au BufNewFile,BufRead $XDG_CONFIG_HOME/cabal/config setf cabalconfig -endif -au BufNewFile,BufRead $HOME/.config/cabal/config setf cabalconfig +au BufNewFile,BufRead */{.,}cabal/config setf cabalconfig au BufNewFile,BufRead cabal.config setf cabalconfig au BufNewFile,BufRead *.persistentmodels setf haskellpersistent