https://github.com/alx741/haskellcomplete.vim
Haskell omnicompletion for Vim [official]
https://github.com/alx741/haskellcomplete.vim
completion haskell omnicomplete vim
Last synced: about 1 month ago
JSON representation
Haskell omnicompletion for Vim [official]
- Host: GitHub
- URL: https://github.com/alx741/haskellcomplete.vim
- Owner: alx741
- Created: 2018-08-26T22:42:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T21:17:08.000Z (almost 5 years ago)
- Last Synced: 2025-10-08T23:25:14.714Z (9 months ago)
- Topics: completion, haskell, omnicomplete, vim
- Language: Vim script
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vim haskellcomplete
Official Haskell omni completion plugin distributed in Vim's runtime.
## Installation
If your Vim's runtime is up to date you should already have it, if not, you can
install it as a normal plugin.
Compatible with `Vundle`, `Vim-plug`, `Pathogen`, etc.
If you install it as an external plugin, you might need to set the *omnifunc*
with `setlocal omnifunc=haskellcomplete#Complete`.
Or add an auto command to your `.vimrc` file:
```vim
augroup ft_haskell
au!
au FileType haskell setlocal omnifunc=haskellcomplete#Complete
augroup END
```
## Usage
Use normal omni completion mechanisms.
```vim
:h i_CTRL-X_CTRL-O
```
## Available completions
- GHC language extensions pragma
```haskell
{-# LANGUAGE #-}
```
- GHC flags pragma
```Haskell
{-# OPTIONS_GHC #-}
```
- Core packages module names
```Haskell
import
```