spacemacs/layers/+lang/php/funcs.el
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

26 lines
684 B
EmacsLisp

;;; funcs.el --- PHP Layer functions File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defun spacemacs//php-setup-backend ()
"Conditionally setup php backend."
(pcase php-backend
(`lsp (lsp))))
(defun spacemacs//php-setup-dap ()
"Conditionally setup elixir DAP integration."
;; currently DAP is only available using LSP
(pcase php-backend
(`lsp (spacemacs//php-setup-lsp-dap))))
(defun spacemacs//php-setup-lsp-dap ()
"Setup DAP integration."
(require 'dap-php))