Commit Graph

150 Commits

Author SHA1 Message Date
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
SpacemacsBot 54c6cce370 [bot] "documentation_updates" Sun May 29 13:05:22 UTC 2022 2022-05-29 15:49:07 +02:00
Keith Pinson 9d7646f0f4 [scala] add keybinding for running `It / compile` in SBT 2022-05-29 14:16:09 +02:00
SpacemacsBot 9f1155a998
[bot] "documentation_updates" Tue Feb 22 16:39:44 UTC 2022 (#15373) 2022-02-22 11:44:00 -05:00
Keith Pinson e9adfe9122
[scala] add keybinding for running `Test / compile` in SBT (#15372) 2022-02-22 11:37:17 -05:00
Keith Pinson 415f367589 [scala] Shortcut keys for common/standard SBT commands
It's nice to have a way to use common SBT commands without having to enter a
Hydra, and without having to type them out or select from a history list. The
following should be standard and quite common:

+ `scalafmtAll`
+ `compile`
+ `test`

Added mnemonic keybindings that I think match Spacemacs conventions. They
behaviors also give better parity with the build capabilities of other major
modes, which frequently support compile, format and test functionality.
2021-11-17 06:46:10 +01:00
Lucius Hu fd3fd46224 scala: refactor
- Replaced `pcase` form with only one-arm with `when` or `unless` form
2021-04-04 12:48:21 +02:00
syl20bnr 97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
syl20bnr 0ed84490d5 [scala] Fix typos
Fix typos mentioned by a user via email.
2021-03-20 21:37:10 -04:00
Maximilian Wolff 86ea9871cb [scala] Make changed default behaviour more clear in docs 2021-03-20 21:02:09 +00:00
EstebanMarin 0ccea3c436 Update to default behaviour
When working long hours with Metals and saving and moving between buffers. This feature of automatically showing and writing in buffers breaks HELM, and buffer management stops, rendering Emacs useless. Furthermore, this feature is not that useful. In VIM LSP is off by default. The purpose of this is to make the experience of Scala Developers with Metals a nice one, rather than having Emacs breaking all the time, as has been happening to me. This has saved me hours.

PR-comments
2021-03-20 20:59:25 +00:00
emacspace 8c18c1fc30 documentation formatting: Mon Jan 25 02:14:21 UTC 2021 2021-01-25 09:01:25 +02:00
Keith Pinson a973da57ee [scala] remove long-deprecated Ensime integration
According to its website, the Ensime project has been shut down since 2019. We
have been supporting both Ensime and Metals for [a year and a
half](https://github.com/syl20bnr/spacemacs/pull/12234#issuecomment-524916394).
Ensime's GitHub repositories, including its Emacs integration, are archived.
Meanwhile, Metals has been developed actively, regularly releasing new versions.
It has stabilized significantly, and supports an increasingly full set of
features. Scala 3 is just around the corner, and the community is poised to make
the transition smoothly and relatively quickly. Metals supports it already,
whereas of course Ensime does not and never will. In fact, Scala 2 has had
several import minor versions released since Ensime died. Now that it's 2021,
it's time to cut the baggage we are carrying around for Ensime.
2021-01-19 21:45:40 +01:00
emacspace 73cc5b24f3 documentation formatting: Mon Jan 11 22:39:03 UTC 2021 2021-01-14 13:22:53 +02:00
Keith Pinson 667914e5fa [scala] provide an easy way to a small SBT buffer at frame bottom
This feels like the natural place to put it, though we could also extend this
with other values in the future. I defaulted this behavior to off in order to
not impact folks' current setup.
2021-01-11 22:54:58 +01:00
Rodolfo Hansen 02ff6cd4db
[dhall] Add lsp support (#14139)
* Make showing the treeview in scala a config parameter
* Add dhall lsp server integration
2020-11-16 23:20:10 +01:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Bjarke Vad Andersen 0e9edda361 [Scala] Add lsp-metals
Having an explicit dependency on lsp-treemacs for post-init-lsp-treemacs is no
longer necessary in the Scala layer, as lsp-metals superseeds it.
Removed lsp-metals-treeview-enable as it no longer exists.
2020-06-11 00:43:12 +02:00
emacspace 064727f2f2 documentation formatting: Sun Jun 7 20:46:17 UTC 2020 2020-06-07 23:07:07 +02:00
Keith Pinson f5fddc4256 [scala] drop support for Unicode arrows, now deprecated in Scala
As of Scala 2.13, Unicode arrows are deprecated:

* https://github.com/scala/scala/pull/7540
* https://github.com/scala/scala-dev/issues/585
* https://github.com/scala/bug/issues/11210

Using one will give a deprecation warnings like so:

> The unicode arrow `⇒` is deprecated, use `=>` instead. If you still wish to
> display it as one character, consider using a font with programming ligatures
> such as Fira Code.

As such the Scala layer's version slick capability to replace ASCII arrows with
Unicode ones is no longer useful, and I have removed it.

Based on my tests it doesn't seem that there is a need for a more graceful way
to deprecate this: i.e. nothing fails if there is extra junk in `:variables`.
2020-06-07 12:51:10 +02:00
Maximilian Wolff 1fd90fc1dc
Update instructions for dap integration and update existing layers
The previous way of adding dap to a layer did add the mode
unconditionally to `spacemacs--dap-supported-modes` causing
dap bindings to be added also when no lsp backend was used.
2020-05-16 23:40:38 +02:00
emacspace 465231113e documentation formatting: Fri Apr 3 16:07:25 UTC 2020 2020-04-03 19:22:35 +02:00
Rodolfo Hansen 7854e57efb
Add support for DAP and lsp-treeview in scala layer
This is squash commit including below commits:

* Add support for DAP and lsp-treeview in scala layer
* Address notes from code review.
2020-04-03 18:00:45 +02:00
Maximilian Wolff dc0a1246cc
[scala] Fix implicit loading of lsp layer 2020-03-15 21:03:19 +01:00
emacspace 0cee84f2bb documentation formatting: Fri Mar 13 07:13:20 UTC 2020 2020-03-13 08:19:39 +01:00
Maximilian Wolff 1f2dfb2a67
[scala] Make ensime still working for old configs 2020-03-13 08:10:59 +01:00
Maximilian Wolff 1e5cdfeedc
[scala] Avoid depending on abandoned ensime backend
Ensime seems to be finally dead, as ensime-mode is not longer
available on melpa. The same applies to ob-scala the package
which delivered scala support for org babel.

I have changed the layers default to metals and took care that
ensime is not tried to be installed until it is really selected
as a package.

In addition I have also fixed some smaller issues in the layer
which caused ensime specific settings to be forced even when
metals was selected as a backend.

I have also removed the not longer existing org-babel support
for scala as it requires ob-scala which in turn is based on ensime.

See https://github.com/hvesalai/emacs-scala-mode/issues/155 for details.
2020-03-12 23:59:31 +01:00
duianto dd8e611158
Replace obsolete lsp-prefer-flymake with lsp-diagnostic-package 2020-02-21 23:19:20 +01:00
JAremko 701c449f64 doc fixes 2019-12-20 01:21:01 +02:00
emacspace a77f8f41f5
documentation formatting: Sun Dec 15 10:06:01 UTC 2019 2019-12-15 14:43:43 +01:00
Nicholas Hurden 9730e16463
[scala] Update metals binary version in README
Update the version of metals referenced in the metals installation
instructions, so that an old version of the metals binary doesn't get installed
by accident.
2019-12-14 20:52:50 +00:00
Rodolfo Hansen 2d154bec8e [scala] sbt-supershell kills sbt-mode 2019-11-28 18:41:08 +01:00
jaremko 247830ab40 fix links 2019-11-10 16:13:13 +02:00
emacspace c91779aff4 documentation formatting: Fri Nov 8 16:03:53 UTC 2019 2019-11-08 16:08:22 +00:00
Miciah Masters 552fd5953c Update references to macOS
Apple renamed "Mac OS X" to "OS X" in 2012 and then to "macOS" in 2016.
Update references to use the current name.
2019-10-13 12:04:40 +02:00
syl20bnr 584392bd92 [core] Fix layer dependencies based on layer variables
There was a edge case with the declaration of the `lsp` layer in `layers.el`
files.
The `hy` layer depends on the `python` layer which in turn depends on the `lsp`
layer if and only if the `python-backend` layer variable is set to `lsp`.
When the `hy` layer was declared first then it declares the `python` layer
without its layer variables, thus the `lsp` layer was not declared because the
`python-backend` variable was not set.

The fix is to gather all the layer dependencies and resolve them only after all
the used layers have been declared.

* new function `configuration-layer/declare-layer-dependencies`
* replace all calls to `configuration-layer/declare-layer` by the new function
  except for distribution layers (we declare layer dependencies right away in
  distribution layers)
2019-09-30 02:00:48 -04:00
syl20bnr ac30247811 [lsp] When used, make LSP the default backend for all supported lang
* Added a new function to each language to select the backend
* Use these new functions in all `pcase`.
2019-09-30 00:49:44 -04:00
Rodolfo Hansen 9155c0b65e Lsp-scala is deprecated in favor of lsp itself 2019-09-22 21:38:18 +02:00
smile13241324 cf15de9f20 [java] Make lsp the default backend and drop eclim support 2019-09-18 21:21:55 +02:00
Teo Klestrup Röijezon 4bf5b7be7b Moved Ensime support to the Scala layer, removed Java support 2019-09-18 20:46:53 +02:00
emacspace e61e91fbc5 documentation formatting: Thu Aug 29 23:13:44 UTC 2019 2019-08-30 01:17:29 +02:00
Rodolfo Hansen e2d9e32e92 Add lsp-scala and metals as a language backend for scala 2019-08-26 17:50:07 +02:00
duianto 3868a5364f [doc] Fix typos and add missing/remove extra ~
Add missing ~ (tilde) around key bindings.
Remove an extra ~.
2019-06-01 20:40:22 +02:00
emacspace c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
Anton-Latukha ba074bc908 layers: lang: new structure: general: add pure, multi-paradigm (&js) 2019-05-15 21:04:48 +03:00
JAremko 77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
duianto ee811f7b13 Unify packages list parentheses style
problem:
some layer packages lists have the open and closing parentheses on the same line
as the first and last listed package, but most seem to have them on a separate
lines.

solution:
put the open and close parentheses on separate lines, except for lists with only
a single package, they are written on the same line as the variable name and
parentheses.

fix the lists indentation
2018-11-21 21:35:38 +00:00
JAremko cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00