mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(lang): Tweaks projectile setup releated to dart and go
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
(dart-enable-analysis-server t)
|
||||
|
||||
:init
|
||||
(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"))
|
||||
|
||||
(defun siren-dart-mode-setup ()
|
||||
(when (fboundp 'highlight-symbol-mode)
|
||||
(highlight-symbol-mode -1))
|
||||
@@ -32,11 +36,7 @@
|
||||
(company-mode +1)
|
||||
(lsp)
|
||||
(siren-folding)
|
||||
(subword-mode +1))
|
||||
|
||||
(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")))
|
||||
(subword-mode +1)))
|
||||
|
||||
(provide 'siren-dart)
|
||||
;;; siren-dart.el ends here
|
||||
|
||||
@@ -24,9 +24,10 @@
|
||||
(go-mode . siren-go-mode-setup)
|
||||
|
||||
:init
|
||||
(add-to-list 'projectile-globally-ignored-directories "Godeps")
|
||||
(add-to-list 'projectile-globally-ignored-directories "vendor/github.com")
|
||||
(add-to-list 'projectile-globally-ignored-directories "vendor/gopkg.in")
|
||||
(with-eval-after-load "projectile"
|
||||
(add-to-list 'projectile-globally-ignored-directories "Godeps")
|
||||
(add-to-list 'projectile-globally-ignored-directories "vendor/github.com")
|
||||
(add-to-list 'projectile-globally-ignored-directories "vendor/gopkg.in"))
|
||||
|
||||
(defun siren-go-mode-setup ()
|
||||
(setq-local tab-width 4
|
||||
|
||||
Reference in New Issue
Block a user