daml/dev-env/dotfiles
Gary Verhaegen 1872c668a5
replace DAML Authors with DA in copyright headers (#5228)
Change requested by Manoj.

CHANGELOG_BEGIN
CHANGELOG_END
2020-03-27 01:26:10 +01:00
..
vim open-sourcing daml 2019-04-04 09:33:38 +01:00
README.md update all references of old repo to new repo 2019-04-04 16:20:07 +02:00
stylish-haskell.yaml replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00

Editor DAML Language Integration

Vim

In order to enable vim syntax highlighting for our DSLs, execute the following two lines in your terminal (assuming ~/dev is where you've checked out digital-asset/daml)

mkdir -p ~/.vim/syntax
ln -s ~/dev/dotfiles/vim/syntax/*.vim ~/.vim/syntax/

You also want to make sure that you are sourcing the .vimrc_da file in your ~/.vimrc.

## VS Code

Follow the DAML Studio installation instructions in the DAML user guide.

Update Keywords

The instructions on how to update the syntax highlighting of keywords in all our supported editors is in pkgs/da-hs-daml-base/src/DA/Daml/ReservedNames.hs (see documentation for printEditorKeywords).

Stylish Haskell

Copy the stylish-haskell.yaml file either to ~/.stylish-haskell.yaml or to ~/dev/.stylish-haskell.yaml. If you are using vim you can use the plugin jasperdvdj/stylish-haskell to automatically style your code on write.