Skip to content

meck/vim-brittany

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

vim-brittany

This is an adaption of vim-stylishask by alx741. It's basically a search and replace.

Vim-brittany integrates with brittany so every time you save a Haskell source file it gets automatically prettified.

Simply using :%!brittany replaces your whole source file with an error message from brittany when you happen to have a syntax error in your code, this plugin manages that annoyance.

Installation

Compatible with Vundle, Pathogen, Vim-plug.

Usage

By default, vim-brittany will format your code automatically when saving a Haskell source file, but you can use the :Brittany command at any time to format the current file.

To apply vim-brittany on a range, either write the range manually or visually select the desired code and then invoke :Brittany.

Use :BrittanyEnable, :BrittanyDisable, :BrittanyToggle to enable, disable, or toggle running brittany on save.

Configuration

Trigger brittany when saving (default = 1):

g:brittany_on_save = 1

Brittany configuration file to use (default = "" == Use default ~/.brittany/config.yaml):

g:brittany_config_file = "/path/to/config.yaml"

About

Vim Haskell Brittany integration plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published