watch plugin themes
use anyhow::Result;
use crossbeam_channel::{unbounded, Receiver, Sender};
+use directories::BaseDirs;
use druid::{
piet::PietText, theme, Command, Data, Env, EventCtx, ExtEventSink,
FileDialogOptions, Lens, Point, Rect, Size, Target, Vec2, WidgetId, WindowId,
@@ -293,6 +294,10 @@ pub fn new(
if let Some(path) = KeyPressData::file() {
let _ = watcher.watch(&path, notify::RecursiveMode::Recursive);
}
+ if let Some(base) = BaseDirs::new() {
+ let path = base.home_dir().join(".lapce").join("plugins");
+ let _ = watcher.watch(&path, notify::RecursiveMode::Recursive);
+ }
Self {
window_id,
tabs,
