An open API service indexing awesome lists of open source software.

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]

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
```