30 lines
910 B
EmacsLisp
30 lines
910 B
EmacsLisp
|
;;; 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)
|
||
|
(progn
|
||
|
(lsp))
|
||
|
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))
|