Commit graph

1767 commits

Author SHA1 Message Date
syl20bnr d536b36d15 [c-c++] C/C++ layer refactor to support multiple backends 2019-11-09 09:40:56 -05:00
syl20bnr ab818140d0 [cmake] Remove cmake forgotten cmake config in c-c++ layer 2019-11-09 09:40:51 -05:00
syl20bnr bb145f3e70 [c-c++] Reorganize layer variables in config.el 2019-11-09 09:40:47 -05:00
cormacc 0a39263e2d Added clangd support. Separated lsp server selection from backend.
<<Amendment 1>>
Fixed clangd executable when c-c++-lsp-executable not set

<<Amendment 2>>
Rebased. Updated DAP configuration for compatibility with upstream dap layer
changes (specifically per-mode keybindings).

<<Amendment 3>>
Fixed DAP configuration.
Correction: declare-layers -> declare-layer-dependencies

<<Amendment 4>>
...ahem...
Fixed DAP configuration (missing '/' in func name)
2019-11-09 09:40:33 -05:00
Nam Nguyen 729ad60b28 Support relative virtualenv path in .venv file for Python layer 2019-11-08 23:28:30 +01:00
jaremko 9c2cb17e54 doc fixes and new tags 2019-11-08 17:09:01 +00:00
emacspace c91779aff4 documentation formatting: Fri Nov 8 16:03:53 UTC 2019 2019-11-08 16:08:22 +00:00
jaremko 6be744b8bb fix a link in Haskell docs 2019-11-08 15:58:38 +00:00
jpathy 72e49c6f2b No need for hook. It gives error as 'ediprolog is not defined. 2019-10-31 10:41:58 +01:00
duianto 5fcd6e31eb [julia] Update readme.org
Removed org verbatim emphasis around link descriptions.

Moved up a paragraph before the julia-mode-enable-lsp code snippet,
because it ended with "then install this layer with:".

Removed the link from the same paragraph, it linked to it's own section.
2019-10-24 21:35:42 +02:00
Guido Kraemer 4e57ebe42b [julia] Load lsp-julia from melpa, etc.
Loaded lsp-julia from melpa

And fixed #12852
spacemacs/go-setup-backend was incorrectly added to the hook:
julia-mode-local-vars-hook
The correct function is now added: spacemacs/julia-setup-lsp

correct a tick
2019-10-24 20:36:01 +02:00
Didier A 58dcd6320b [clojure] Added support for joker linter and having mutliple active linters
The variable clojure-enable-linters can now be set to a list of linters:

'(clj-kondo joker)
  or
'(joker squiggly)
  or any other combination of the available linters.

In which case, all linters in the list will be active if they are
available to be. In that flycheck is configured so that each linter
in the list has as next-checker the next linter in the list.

The variable can also now be set to:

'joker

If only the newly added joker linter should be used.

This will pull down flycheck-joker and add Joker as a checker for
Clojure modes.

--

Implementation Details

The way it works is that for each Clojure linting mode, clj, cljc,
cljs and edn, a primary linter is chosen based on the order the
user specifies in clojure-enable-linters which support that mode.
It is made the primary linter for flycheck to use by being promoted
to the front of the flycheck-checkers list. All other linters specified
by the user which the mode also supports get added to it as a
next-checker.

Tested with clj-kondo, joker and squiggly. The only issue I saw was that
the way flycheck-clojure works, and the way I currently have setup the
logic for multiple checkers mean that we can't add to a mode multiple
checkers for the same linter. flycheck-clojure has eastwood, kibit and
core.typed. If you have it configured to use eastwood linter, then it
will all work, as eastwood gets added as the next-checker. But if you
have it disabled in flycheck-clojure, there won't be any
flycheck-clojure linters to activate. I'm not sure as of now how to best
support that. Ideally, we would not clubber linters into a single packge
like that, and so the layer would have instead of squiggly: eastwood,
kibit, core.typed. But that's not how flycheck-clojure works. Future
commit might be able to do something smarter about this.
2019-10-20 00:23:58 +02:00
duianto 75b266ff39 [javascript] Document layer var: javascript-fmt-on-save
Also mention prettier as the other formatter in the features section.
And wrap some long lines.
2019-10-19 21:32:42 +02:00
smile13241324 25dbbd1e5a [conda] Revise conda layer
Conda layer needed some additions to be spacemacs
conform. In detail I did:
* Add missing features block and TOC declaration in README
* Change bindings to extent the existing python bindings
  rather than adding new general bindings.
* Make conda layer require python layer
2019-10-19 21:06:57 +02:00
Zach Pearson b4ff40b941 Add conda layer (to work with anaconda environments) 2019-10-19 20:00:00 +02:00
Miloš Mošić b9f3ed61f4 [elixir] Enable evil-matchit in elixir mode 2019-10-19 10:47:28 +02:00
Gia Thanh Vuong 18715b872b bind c-ret to cider-repl-newline-and-indent in repl
For evil insert mode
2019-10-19 00:32:51 +02:00
alex argunov 92b7b65d13 Add available formatters to typescript readme 2019-10-18 22:39:44 +02:00
Zach Pearson ef1cecce01 Add a way to start an EIN Jupyter server from Spacemacs's UI 2019-10-18 20:59:09 +02:00
Aaron Jensen 1bd3777006 Fix tide with tsx files
This was broken in
ac30247811
if you do not specify a backend explicitly
2019-10-18 20:36:05 +02:00
wenpin a45948c759 fix typo
There are two `dap-firefox-setup` while `dap-chrome-setup` never show up
2019-10-16 21:04:14 +02:00
Boris Buliga 5785f1788f [python] update jedi instructions
Following 150390968b
2019-10-14 22:18:11 +02:00
Thijs Vermeir f753076772 fix documentation in markdown layer 2019-10-13 16:22:44 +02: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
Miciah Masters c7516a84c6 Fix documentation for key bindings
* layers/+lang/mercury-layer/README.org: Fix key bindings.
2019-10-13 10:46:45 +02:00
Martin Račák 1fec4ec135 Fix conditional backend setup
* Use spacemacs//python-backend to check which backend is being used
* Set leader keys for anaconda in :config to avoid overwriting by tags layer
2019-10-12 15:21:40 +02:00
Martin Račák c95534ace5 Revert "Use anaconda-mode-find-definition for SPC-m-g-g"
This reverts commit 9bafd3f561.
2019-10-12 15:21:40 +02:00
Rakan Alhneiti 9bafd3f561 Use anaconda-mode-find-definition for SPC-m-g-g 2019-10-11 22:03:59 +02:00
Thanh Vuong ba1fba2455 add lsp for html buffer 2019-10-09 15:29:29 +02:00
Daniel Caixinha 7dd4118820 Add instructions to PlantUML README to set exec-mode accordingly 2019-10-06 21:16:05 +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
syl20bnr 9606dd344e [dap] Refactor configuration dap config in layers
* use local-vars-hook coupled to setup function for dap
* define new private layer variable `spacemacs--dap-supported-modes` to
  configure key bindings. This allows to move the key bindings definition from
  `funcs.el` to `packages.el`
* remove duplication of DAP key bindings in READMEs by pointing to the dap layer
  documentation
* alphabetically sort package configuration
2019-09-30 00:34:26 -04:00
syl20bnr 2b70cd5f45 [java] Remove unconfigured eldoc package 2019-09-30 00:34:26 -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
smile13241324 aa244a91a5 [shell-scripts] Load lsp layer when an lsp backend has been selected 2019-09-28 22:21:51 +02:00
smile13241324 9730173e94 [shell-scripts] Make readme describe the available backends more clearly 2019-09-28 22:04:51 +02:00
Georgy Lukyanov bee9bea1b6 Fix #9429: Make agda layer retain indentation on paste.
Add `(add-to-list 'spacemacs-indent-sensitive-modes 'agda2-mode)`
into the definition of `agda/init-agda`.
2019-09-28 14:23:17 +02:00
duianto 8ca2af4215 [php] Enable evil-matchit-mode 2019-09-27 13:35:29 +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
Javier Candeira f25ad36d79 [html] Add .svelte files to web-mode auto-mode-alist :mode handler 2019-09-23 13:45:15 +02:00
Vitaly Banchenko cba2602622 [Clojure] fix repl-buffer autoscroll when send forms.
When send form/region/buffer to repl without focus - repl buffer is
not scrolling and result not visible.

Added scrolling to the end of the repl-buffer after eval.
2019-09-22 21:52:18 +02:00
Rodolfo Hansen 9155c0b65e Lsp-scala is deprecated in favor of lsp itself 2019-09-22 21:38:18 +02:00
Mathieu 16f283898c Add flutter and lsp support to dart layer 2019-09-22 21:21:06 +02:00
Daniel Richtmann 724eb908a8 Enable experimental support for lsp within the shell-scripts layer
Note that this is only valid for bash scripts, since it uses the
`bash-language-server` defined in `lsp-clients.el`
2019-09-22 20:51:33 +02:00
torstein 909d755667 Do not use tabs in inferior python mode 2019-09-22 19:05:14 +02:00
duianto 1f0e41d7c2 [php] Add phpunit test key bindings 2019-09-22 18:55:36 +02:00