All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 ===============================================================================
2 ALE Scala Integration *ale-scala-options*
5 ===============================================================================
6 cspell *ale-scala-cspell*
8 See |ale-cspell-options|
11 ===============================================================================
12 metals *ale-scala-metals*
14 `metals` requires either an SBT project, a Mill project, or a running Bloop
17 *ale-options.scala_metals_executable*
18 *g:ale_scala_metals_executable*
19 *b:ale_scala_metals_executable*
20 scala_metals_executable
21 g:ale_scala_metals_executable
23 Default: `'metals-vim'`
25 Override the invoked `metals` binary.
27 *ale-options.scala_metals_project_root*
28 *g:ale_scala_metals_project_root*
29 *b:ale_scala_metals_project_root*
30 scala_metals_project_root
31 g:ale_scala_metals_project_root
35 By default the project root is found by searching upwards for `build.sbt`,
36 `build.sc`, `.bloop` or `.metals`. If the project root is elsewhere, you
37 can override the project root directory.
40 ===============================================================================
41 sbtserver *ale-scala-sbtserver*
43 `sbtserver` requires a running ^1.1.x sbt shell to connect to. It will attempt
44 to connect via TCP to the address defined in `g:ale_scala_sbtserver_address`.
45 As `sbt` defaults to listening via unix sockets, place these settings into
46 your `~/.sbt/1.0/global.sbt` to ensure that ale will always attempt to connect
49 `serverConnectionType := ConnectionType.Tcp` and `serverPort := 4273`
51 *ale-options.scala_sbtserver_address*
52 *g:ale_scala_sbtserver_address*
53 *b:ale_scala_sbtserver_address*
54 scala_sbtserver_address
55 g:ale_scala_sbtserver_address
57 Default: `'127.0.0.1:4273'`
59 By default the address is found by parsing `active.json`, however, reading a
60 file is a blocking operation which should be avoided in ale. The easy way
61 around this is to configure sbt to always connect to the same port, which
62 the instructions above describe.
64 *ale-options.scala_sbtserver_project_root*
65 *g:ale_scala_sbtserver_project_root*
66 *b:ale_scala_sbtserver_project_root*
67 scala_sbtserver_project_root
68 g:ale_scala_sbtserver_project_root
72 By default the project root is found by searching upwards for `build.sbt`.
73 If the project root is elsewhere, you can override the project root
77 ===============================================================================
78 scalafmt *ale-scala-scalafmt*
80 If Nailgun is used, override `g:ale_scala_scalafmt_executable` like so: >
82 let g:ale_scala_scalafmt_executable = 'ng'
84 *ale-options.scala_scalafmt_executable*
85 *g:ale_scala_scalafmt_executable*
86 *b:ale_scala_scalafmt_executable*
87 scala_scalafmt_executable
88 g:ale_scala_scalafmt_executable
92 Override the invoked `scalafmt` binary. This is useful for running `scalafmt`
95 *ale-options.scala_scalafmt_options*
96 *g:ale_scala_scalafmt_options*
97 *b:ale_scala_scalafmt_options*
98 scala_scalafmt_options
99 g:ale_scala_scalafmt_options
103 A string containing additional options to pass to `'scalafmt'`, or
104 `'ng scalafmt'` if Nailgun is used.
107 ===============================================================================
108 scalastyle *ale-scala-scalastyle*
110 `scalastyle` requires a configuration file for a project to run. When no
111 configuration file can be found, ALE will report a problem saying that a
112 configuration file is required at line 1.
114 To disable `scalastyle` globally, use |g:ale_linters| like so: >
116 let g:ale_linters = {'scala': ['scalac']} " Enable only scalac instead
118 See |g:ale_linters| for more information on disabling linters.
120 *ale-options.scala_scalastyle_config*
121 *g:ale_scala_scalastyle_config*
122 *b:ale_scala_scalastyle_config*
123 scala_scalastyle_config
124 g:ale_scala_scalastyle_config
128 A string containing the location of a global fallback configuration file.
130 By default, ALE will look for a configuration file named
131 `scalastyle_config.xml` or `scalastyle-config.xml` in the current file's
132 directory or parent directories.
134 *ale-options.scala_scalastyle_options*
135 *g:ale_scala_scalastyle_options*
136 *b:ale_scala_scalastyle_options*
137 scala_scalastyle_options
138 g:ale_scala_scalastyle_options
142 A string containing additional options to pass to scalastyle.
145 ===============================================================================
146 vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: