Skip to content

Commit b143208

Browse files
doc: Add pointers to editor configuration (#12810)
* doc: Add pointers to editor configuration Signed-off-by: Marek Kubica <marek@tarides.com> * Add note about exhaustivity and link to OCaml.org Signed-off-by: Marek Kubica <marek@tarides.com> * Apply suggestions from code review Co-authored-by: Shon Feder <shon.feder@gmail.com> Signed-off-by: Marek Kubica <marek@xivilization.net> * Reformat and fix markup Signed-off-by: Marek Kubica <marek@tarides.com> --------- Signed-off-by: Marek Kubica <marek@tarides.com> Signed-off-by: Marek Kubica <marek@xivilization.net> Co-authored-by: Shon Feder <shon.feder@gmail.com>
1 parent ce98b81 commit b143208

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
How to Configure Editors with Package Management
2+
================================================
3+
4+
This document aims to help people set up their editors for use with Dune
5+
package management. Different configurations are required than when using opam
6+
to manage dependencies.
7+
8+
:::{note}
9+
This list is not exhaustive. If you have a configuration for your editor that
10+
is not included here, we would welcome a [pull request to the Dune
11+
repository](https://github.com/ocaml/dune/pulls) documenting the configuration.
12+
:::
13+
14+
Emacs
15+
-----
16+
17+
For Emacs, we recommend using `ocaml-eglot` mode with Dune package management.
18+
Follow the [instructions in the OCaml-eglot
19+
repository](https://github.com/tarides/ocaml-eglot?tab=readme-ov-file#usage-with-dune-pkg).
20+
21+
Neovim
22+
------
23+
24+
The instructions on how to configure `ocaml.nvim`, the OCaml plugin for Neovim
25+
can be found [in the `ocaml.nvim`
26+
repository](https://github.com/tarides/ocaml.nvim?tab=readme-ov-file#using-dune).
27+
28+
29+
Visual Studio Code
30+
------------------
31+
32+
The configuration for the VSCode OCaml Platform extension is [described in the
33+
vscode-ocaml-platform
34+
repository](https://github.com/ocamllabs/vscode-ocaml-platform?tab=readme-ov-file#dune-package-management-dpm).
35+
36+
More information
37+
----------------
38+
39+
For general information on editor set up for OCaml (not including configuration
40+
specific to dune package management) check out [the community documentation on
41+
OCaml.org](https://ocaml.org/docs/set-up-editor).

doc/howto/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ These guides will help you use Dune's features in your project.
2525
override-default-entrypoint
2626
release-binaries-with-github-action
2727
use-opam-alongside-dune-package-management
28+
configure-editors-with-package-management

0 commit comments

Comments
 (0)