Commit Graph

25 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
Maximilian Wolff 500e58341c
Defer loading of lsp servers up to when the buffer is visible 2021-06-06 22:26:31 +02:00
Lucius Hu 870b2c9e5d dart: Fix local vars
- Labelled `dart-backend` as safe local variable.

All setup functions are already added to local variable hook.

See: https://github.com/syl20bnr/spacemacs/issues/14653
2021-04-22 12:53:11 -04:00
Lucius Hu 43c4fa8772 dart: refactor
- Replaced unnecessary backquote construct with simple quotation
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
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Ivan Yonchovski a3ea02d6bd [lsp][dart] Fix dart layer
- lsp-dart was moved into separate package so it has to be requred separatelly.
2020-05-06 23:01:18 +02:00
emacspace 679aeb99d9 documentation formatting: Tue Dec 24 10:03:00 UTC 2019 2019-12-24 11:32:52 +01:00
Maximilian Wolff 97c746f51d
[dart] Make doc show lsp versions of flutter and format on save feature 2019-12-23 20:43:50 +00:00
Maximilian Wolff ffccb17426
Revise dart layer
I have:
- Revised the documentation to be more clear about the possible backends
- Simplified the lsp setup code
- Removed redundant loading of company-lsp (is done by lsp-mode already)
- Made lsp the default backend for dart and mentioned that the analyser is
deprecated
2019-12-20 23:56:10 +01:00
Takeshi Tsukamoto ffd8ad2410
Rework dart layer lsp integration 2019-12-20 19:32:36 +01: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
smile13241324 58e342f242 [dart] Explain LSP dependency and make layer require LSP layer
The dart layer requires the official LSP server as the
emacs mode alternative is not longer properly maintained.
Therefore I have added some more description of how to
install the server properly and let the layer load
the LSP layer automatically.

In addition I have removed the unsupported variable
`dart-server-enable-analysis-server` from the
documentation.

See https://github.com/bradyt/dart-mode/wiki/LSP for
details.
2019-09-28 23:01:49 +02:00
duianto 3142f070f5 [dart] Fix reverting a dart buffer
While getting the dart-server major mode key bindings to work.
Everything was moved from the `dart/init-dart-mode` function,
to the `dart/init-dart-server` function.

This revealed that an empty `dart/init-dart-mode` section causes
`M-x revert-buffer`
to switch the dart buffer to `fundamental-mode`.

The fix was to load `dart-mode` from the `dart/init-dart-mode`
function. And add `:after dart-mode` to the
`dart/init-dart-server` function.
2019-09-25 10:59:43 +02:00
duianto 37e326e1cf [dart][doc] Remove disabled key binding SPC m f f
The key binding was disabled because of this upstream issue:
dart-server-find-refs on int opens a dart buffer that keeps growing in size #11
https://github.com/bradyt/dart-server/issues/11
2019-09-24 07:48:55 +02:00
duianto af52143b6c [dart] fix jump handlers 2019-09-24 07:39:37 +02:00
duianto a069c6125a [dart] Add dart-server package
dart-mode has been split into two packages:
- dart-mode, Provides basic syntax highlighting and indentation.
- dart-server, Factors out the features from dart-mode.el that relied on
external executables, thus improving availability, reliability, testing and
development of dart-mode.el.
2019-09-23 19:18:33 +02:00
Mathieu 16f283898c Add flutter and lsp support to dart layer 2019-09-22 21:21:06 +02: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
emacspace 6cde1e49bc documentation formatting: Fri Apr 12 19:31:31 UTC 2019 2019-04-12 22:02:05 +02:00
Bruno Tavares 9e2da23c12 Removes workarounds and update flycheck integration
This commit removes the workarounds needed on older versions of `dart-mode` library, now that many of the fixes have landed.

This commit also fixes the integration with flycheck, as there is a new function used on the `develop` branch.
2019-04-12 18:00:00 +02:00
Bruno Tavares 7841d3ba6a Introduces Dart layer
This is a initial implementation of a Dart later.
A [previous implementation] has been deprecated, using a forked version of `dart-mode`.

This layer uses the [dart-mode] linked on the [Dart tools] page.
The layer works with a Flutter installation as well.

Ideally, we would be able to offer a `lsp` backend as an option to use, instead
of using the Dart Analyzer, but I'm still figuring out how to implement and
integrate this.

This layer has [some] [fixes] to make it work, and it is waiting for upstream to
take patches.

- Resolves https://github.com/syl20bnr/spacemacs/issues/8333
- Resolves https://github.com/syl20bnr/spacemacs/issues/8395
- Resolves https://github.com/syl20bnr/spacemacs/issues/10452

---
[previous implementation]: https://github.com/syl20bnr/spacemacs/pull/8406
[dart-mode]: https://github.com/bradyt/dart-mode
[Dart tools]: https://www.dartlang.org/tools
[some]: https://github.com/bradyt/dart-mode/pull/67
[fixes]: https://github.com/bradyt/dart-mode/pull/66
2019-04-12 18:00:00 +02:00