From 529b6145c98d5aa527ac1dfa7969a0125ee299d4 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 29 May 2019 12:41:06 -0600 Subject: [PATCH] Recognize Dart Projects. By default projectile doesn't recognize Dart projects, so this adds 'pubspec.yml' and BUILD to the list of project files. Snippet lifted from https://github.com/bradyt/dart-mode/wiki/LSP#lsp-mode --- elpa.svg | 2 +- frontmacs-dart.el | 6 ++++++ frontmacs-pkg.el | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/elpa.svg b/elpa.svg index 0338e2f..4f3af09 100644 --- a/elpa.svg +++ b/elpa.svg @@ -1 +1 @@ -elpaelpa0.2.240.2.24 +elpaelpa0.2.250.2.25 diff --git a/frontmacs-dart.el b/frontmacs-dart.el index 7a44eb3..01cd07c 100644 --- a/frontmacs-dart.el +++ b/frontmacs-dart.el @@ -4,4 +4,10 @@ ;; use lsp-mode for dart (add-hook 'dart-mode-hook #'lsp) +;; teach projectile how to recognize a dart project (it's one that has +;; a pubspec.yml or BUILD file in its root) +(with-eval-after-load "projectile" + (add-to-list 'projectile-project-root-files-bottom-up "pubspec.yaml") + (add-to-list 'projectile-project-root-files-bottom-up "BUILD")) + (provide 'frontmacs-dart) diff --git a/frontmacs-pkg.el b/frontmacs-pkg.el index 61ef42b..79039fc 100644 --- a/frontmacs-pkg.el +++ b/frontmacs-pkg.el @@ -1,5 +1,5 @@ ;; -*- eval: (flycheck-mode -1) -*- -(define-package "frontmacs" "0.2.24" "Frontside config package for emacs" +(define-package "frontmacs" "0.2.25" "Frontside config package for emacs" '((f "0.19.0") (editorconfig "0.8.0") (magit "2.8.0")