mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Initial version of dart module
This commit is contained in:
12
modules/lang/dart/config.el
Normal file
12
modules/lang/dart/config.el
Normal file
@ -0,0 +1,12 @@
|
||||
;;; lang/dart/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(cond ((featurep! +flutter) (load! "+flutter"))
|
||||
((featurep! +lsp) (load! "+lsp")))
|
||||
|
||||
(use-package! dart-mode
|
||||
:config
|
||||
(when (featurep! +flutter)
|
||||
(if IS-LINUX
|
||||
(setq lsp-dart-sdk-dir "/opt/flutter/bin/cache/dart-sdk/")))
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'dart-mode-hook 'lsp)))
|
Reference in New Issue
Block a user