2019-09-21 15:49:05 +00:00
|
|
|
;;; funcs.el --- Dart 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//dart-setup-company-lsp ()
|
|
|
|
"Setup lsp auto-completion"
|
|
|
|
(if (configuration-layer/layer-used-p 'lsp)
|
|
|
|
(progn
|
|
|
|
(spacemacs|add-company-backends
|
|
|
|
:backends company-lsp
|
|
|
|
:modes dart-mode
|
|
|
|
:append-hooks nil
|
|
|
|
:call-hooks t)
|
|
|
|
(company-mode))
|
|
|
|
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))
|
|
|
|
|
|
|
|
(defun spacemacs//dart-setup-backend-lsp ()
|
|
|
|
"Setup lsp backend"
|
|
|
|
(if (configuration-layer/layer-used-p 'lsp)
|
2019-09-28 21:01:49 +00:00
|
|
|
(lsp)
|
2019-09-21 15:49:05 +00:00
|
|
|
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))
|