diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:44:22 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:44:22 +0300 |
| commit | 934382c8a1ce738589dee9ee0f14e1cec812770e (patch) | |
| tree | f13715762efd06518f8aec3a2bf39ac8a615987f /uvim/runtime/ftplugin/haskell.vim | |
| parent | 0b24459ac12b6cf9fd5a401d647796ca254a8fa8 (diff) | |
| parent | 7088926316d8d4a7572a242d0765e99adfc8b083 (diff) | |
| download | Project-Tick-934382c8a1ce738589dee9ee0f14e1cec812770e.tar.gz Project-Tick-934382c8a1ce738589dee9ee0f14e1cec812770e.zip | |
Add 'uvim/' from commit '7088926316d8d4a7572a242d0765e99adfc8b083'
git-subtree-dir: uvim
git-subtree-mainline: 0b24459ac12b6cf9fd5a401d647796ca254a8fa8
git-subtree-split: 7088926316d8d4a7572a242d0765e99adfc8b083
Diffstat (limited to 'uvim/runtime/ftplugin/haskell.vim')
| -rw-r--r-- | uvim/runtime/ftplugin/haskell.vim | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/uvim/runtime/ftplugin/haskell.vim b/uvim/runtime/ftplugin/haskell.vim new file mode 100644 index 0000000000..5953e03dd7 --- /dev/null +++ b/uvim/runtime/ftplugin/haskell.vim @@ -0,0 +1,32 @@ +" Vim filetype plugin file +" Language: Haskell +" Maintainer: Daniel Campoverde <alx@sillybytes.net> +" Previous Maintainer: Nikolai Weibull <now@bitwi.se> +" Latest Revision: 2018-08-27 +" 2025 Jul 09 by Vim Project revert setting iskeyword #8191 +" 2026 Jan 18 by Vim Project add include-search and define support #19143 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +let b:undo_ftplugin = "setl com< cms< fo< su< sua< inex< inc< def<" + +setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s +setlocal formatoptions-=t formatoptions+=croql +setlocal omnifunc=haskellcomplete#Complete + +setlocal suffixes+=.hi +setlocal suffixesadd=.hs,.lhs,.hsc + +setlocal includeexpr=findfile(tr(v:fname,'.','/'),'.;') +setlocal include=^import\\>\\%(\\s\\+safe\\>\\)\\?\\%(\\s\\+qualified\\>\\)\\? + +setlocal define=^\\%(data\\>\\\|class\\>\\%(.*=>\\)\\?\\\|\\%(new\\)\\?type\\>\\\|\\ze\\k\\+\\s*\\%(::\\\|=\\)\\) + +let &cpo = s:cpo_save +unlet s:cpo_save |
