daml/dev-env/dotfiles
Moritz Kiefer 96b8651863
Drop orphaned vim syntax files (#12502)
I didn’t even know alp existed and this is definitely not the right
repo for Scala vim syntax defs. I’ve kept the daml def for now at
least since it’s at least in the right repo even if unmaintained.

Also seems very unfair towards emacs users to only have vim files.

changelog_begin
changelog_end
2022-01-20 10:23:12 +00:00
..
vim Drop orphaned vim syntax files (#12502) 2022-01-20 10:23:12 +00:00
README.md Daml case and logo (#8433) 2021-01-08 12:50:15 +00:00
stylish-haskell.yaml update copyright headers (#12240) 2022-01-03 16:36:51 +00: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.