Commit graph

177 commits

Author SHA1 Message Date
SpacemacsBot a3b40d2318
[bot] "documentation_updates" Sun Sep 5 06:17:34 UTC 2021 (#15035) 2021-09-05 02:49:47 -04:00
Evan Klitzke 4ebd512d14
c-c++: Package cpp-auto-include can be fetched from Melpa (#15037) 2021-09-05 06:16:30 +00:00
Cormac Cannon 0ad0e7d328 c-c++ layer : Added doxygen support and keybindings via gendoxy
<<Amendment 1>> Corrected two  whitespace issues as per lebensterben's
comments.
2021-09-04 20:51:44 +02:00
Zheng Qu 3bf2b481a8
[c-c++]: Fix keybinding for organizing includes (#15029) 2021-09-02 05:36:32 -04:00
Maximilian Wolff 500e58341c
Defer loading of lsp servers up to when the buffer is visible 2021-06-06 22:26:31 +02:00
Richard Kim efbf4c5fb5 set initial evil state of ccls-tree-mode to be emacs
Emacs mode is clearly better than vim mode, because j and k keys are already
bound to down/up motion. In addition as the tree mode is traversed, the
matching code pops up on the left in emacs mode but not in vim mode.
2021-05-04 20:50:23 +02:00
Elliott Shugerman 32da42863e [c-c++] Fix "Wrong number of arguments" on Emacs 28
In Emacs 28+, `define-obsolete-variable-alias` requires the WHEN arg.
2021-04-15 07:57:00 +02:00
duianto 4262e01f11 [doc] Fix links 2021-04-13 11:38:33 +02:00
Maximilian Wolff 85d0aa2b18 [c-c++] Provide an alias for c++-enable-organize-includes-on-save 2021-04-12 21:00:09 +00:00
Evan Klitzke a4eadc97fe rename {,c-}c++-enable-organize-includes-on-save 2021-04-12 20:47:11 +00:00
Maximilian Wolff be6f820256 Add missing GPLv3 headers to various files 2021-04-09 20:52:24 +00:00
Lucius Hu 5e641394f4 fixup! c-c++: refactor
This reverts commit e62d55b4fd.

This fixs https://github.com/syl20bnr/spacemacs/pull/14509#issuecomment-813023508
2021-04-04 19:21:46 +02:00
duianto e62d55b4fd Revert "c-c++: refactor"
This reverts commit dae0231fed.

c-c++-backend is void on startup:
https://github.com/syl20bnr/spacemacs/pull/14509#issuecomment-813023508
2021-04-04 14:43:51 +02:00
Lucius Hu dae0231fed c-c++: refactor
- Moved backend determination to `config.el`
- Replaced `(when (not foo) bar)` with `(unless foo bar)`
- Replaced unnecessary backquote construct with simple quotation
- Replaced `pcase` form with only one-arm with `when` or `unless` form
- Replaced `(set (make-local-variable 'foo) bar)` with `(setq-local foo bar)`
- Removed unnecessary `progn`
2021-04-04 12:48:21 +02:00
Lin Sun 3987753a34 [+layer/c-c++] respect the c-c++-enable-rtags-completion setting
The variable `c-c++-enable-rtags-completion` is for enable/disable the rtags
completion.
2021-03-30 22:31:30 +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
duianto 9375d6f54d Add missing space before defun args parens 2021-02-10 08:51:55 +01:00
emacspace 68444f5487 documentation formatting: Sun Feb 7 21:35:33 UTC 2021 2021-02-07 23:25:33 +01:00
M. Domenzain a7e8bd7e65 [c-c++] Add layer variable for DAP adapter selection
Make adapter selection available through the `c-c++-dap-adapters` layer variable
and select the known-good Microsoft C/C++ Extension as a sane default.
2021-02-03 23:35:24 +01:00
Rahul Rameshbabu 1dd17e10ee [c-c++] Fixed typo in README.org 2020-10-17 10:21:06 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
ClarityStorm 7a7b04abb5 Update number of LSP backends in C/C++ layer docs 2020-09-12 06:13:47 +03:00
fperies b83eb11e3d
[layer/+lang/c-c++] Introduction of shortcut for rtags-symbol-type (#13929)
Introduction of <SPC/M-m> g t shortcut for rtags-symbol-type.
Replacement of previous <SPC/M-m> g t into <SPC/M-m> g u for rtags-dependency-tree
2020-09-08 21:17:31 +02:00
fperies 18e35a8607
[layers/+lang/c-c++] Add RTags shortcuts for trees and dead functions (#13838)
* Add RTags shortcuts for trees and dead functions

The change will add 3 shortcuts for dependency, references trees and for finding dead functions.

* Additions of some key bindings
2020-08-19 23:00:23 +02:00
Ivan Yonchovski f895dfc2a9 Remove the references to lsp-ui-flycheck-enable 2020-07-03 20:18:17 +02:00
Maximilian Wolff ecba7ad0dc
[c++] Fix not loading of "c-c++/post-init-company" function 2020-06-05 22:37:08 +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
Ivan Yonchovski c3f13d0391 Removed company-lsp in favour of company-capf
- Also removed some cquery artifacts which accidentally ended up in this PR
instead of in https://github.com/syl20bnr/spacemacs/pull/13446
2020-04-04 08:24:44 +02:00
Ivan Yonchovski c0fc37fe9d Remove cquery backend
- it is no longer supported and it is causing troubles.
2020-04-03 17:38:52 +02:00
Maximilian Wolff 5af37b3165
[c-c++] Fix wrong variable name in documentation 2020-02-23 10:05:22 +00:00
ajbond e919ba7e07
Fix clang-format-on-save 2019-12-14 20:39:35 +00:00
Ivan Yonchovski 95650e0fbb
Use lsp-disabled-clients instead of lsp-enabled-clients
- lsp-mode supports defining remote versions of each clients(e. g. clangd which
works over tramp). Before this change the language server will be disabled
because it has different server-id.
2019-12-08 11:14:39 +01:00
emacspace 73c2141fab documentation formatting: Sat Nov 9 15:00:44 UTC 2019 2019-11-10 13:55:10 +02:00
syl20bnr bd46b02f7f [c-c++] Defer ccls and cquery packages 2019-11-09 09:53:55 -05:00
syl20bnr 1e278a3cb9 Fix bad value for :requires, list is mandatory when multiple symbols
Also remove unecessary required packages for lsp-java package.
2019-11-09 09:41:40 -05:00
syl20bnr 911e45820d [c-c++] Simplify LSP backends cache directory
Make it a cquery only variable by renaming it to
=c-c++-lsp-cquery-cache-directory=.

Reword README.org and update the section about cache directory.
2019-11-09 09:41:23 -05:00
syl20bnr b49e28c541 [c-c++] Add missing spacemacs//c-c++-setup-semantic function 2019-11-09 09:41:20 -05:00
syl20bnr 5ad1ecd542 [c-c++] Add instruction to set path to LSP server executables 2019-11-09 09:41:16 -05:00
Sylvain Benner 6ddcf6f0a6 [c-c++] Fix typos and improve wording
Co-Authored-By: duianto <otnaiud@gmail.com>
2019-11-09 09:41:12 -05:00
syl20bnr 84dd79fe78 [c-c++] Allow to have different servers for different projects 2019-11-09 09:41:04 -05:00
syl20bnr 06708b2039 [ycmd] Remove ycmd layer (move to c-c++ layer) 2019-11-09 09:41:01 -05:00
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
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
smile13241324 b702df7938 Make layers request lsp dependency if lsp has been selected as backend 2019-09-10 22:00:56 +02:00