[lsp] Add lsp-prefer-flymake variable

This commit is contained in:
Juuso Valkeejärvi 2019-03-18 08:36:56 +02:00 committed by duianto
parent c804f37a0f
commit c175e96d85
4 changed files with 15 additions and 9 deletions

View File

@ -1531,6 +1531,7 @@ Other:
**** Language Server Protocol (LSP)
- Replace lsp-capabilities keybinding with lsp-describe-session
(thanks to Bryan Tan)
- Add lsp-prefer-flymake variable (thanks to Juuso Valkeejärvi)
**** Markdown
- New layer variable =markdown-mmm-auto-modes= which is a list of language names
or lists of language and mode names that are supported in source blocks, you

View File

@ -49,14 +49,15 @@ A number of configuration variables have been exposed via the LSP layer =config.
Sensible defaults have been provided, however they may all be overridden in your .spacemacs, or dynamically using the bindings added
under the derived mode t prefix by =(spacemacs/lsp-bind-keys-for-mode mode)=
| Variable name | Default | Description |
|---------------------------------+---------+-------------------------------------------------------------------------------------------|
| =lsp-navigation= | `both | `simple or `peek to bind only xref OR lsp-ui-peek navigation functions |
| =lsp-ui-remap-xref-keybindings= | nil | When non-nil, xref key bindings remapped to lsp-ui-peek-find-{definition,references} |
| =lsp-ui-doc-enable= | t | When non-nil, the documentation overlay is displayed |
| =lsp-ui-doc-include-signature= | nil | When nil, signature omitted from lsp-ui-doc overlay (this is usually redundant) |
| =lsp-ui-sideline-enable= | t | When non-nil, the symbol information overlay is displayed |
| =lsp-ui-sideline-show-symbol= | nil | When non-nil, the symbol information overlay includes symbol name (redundant for c-modes) |
| Variable name | Default | Description |
|---------------------------------+---------+-------------------------------------------------------------------------------------------------|
| =lsp-navigation= | `both | `simple or `peek to bind only xref OR lsp-ui-peek navigation functions |
| =lsp-ui-remap-xref-keybindings= | nil | When non-nil, xref key bindings remapped to lsp-ui-peek-find-{definition,references} |
| =lsp-ui-doc-enable= | t | When non-nil, the documentation overlay is displayed |
| =lsp-ui-doc-include-signature= | nil | When nil, signature omitted from lsp-ui-doc overlay (this is usually redundant) |
| =lsp-ui-sideline-enable= | t | When non-nil, the symbol information overlay is displayed |
| =lsp-ui-sideline-show-symbol= | nil | When non-nil, the symbol information overlay includes symbol name (redundant for c-modes) |
| =lsp-prefer-flymake= | nil | When non-nil, flymake checker is used. When :none, neither flycheck nor flymake checker is user |
** Navigation mode
The ~lsp-navigation~ variable defined in =config.el= allows you to define a preference for lightweight or pretty

View File

@ -15,6 +15,11 @@
If `peek' binds lsp-ui navigation functions under `SPC m g'.
If `both', binds lightweight navigation functions under `SPC m g' and lsp-ui functions under `SPC m G'")
(defvar lsp-prefer-flymake nil
"If nil lsp flymake checker is used.
If non-nil lsp flycheck checker is used.
If :none both are disabled")
;; These are config variables exposed by the lsp-ui package
;; They all have toggles bound under 't' in spacemacs/lsp-define-keys-for-mode
(defvar lsp-ui-doc-enable t "Enable/disable lsp-ui-doc overlay")

View File

@ -22,7 +22,6 @@
:config
(progn
(require 'lsp-clients)
(setq lsp-prefer-flymake nil)
(spacemacs/lsp-bind-keys)
(add-hook 'lsp-after-open-hook (lambda ()
"Setup xref jump handler and declare keybinding prefixes"