From 47f2df1042c6cc8e3a50d5f6f55772714e97f542 Mon Sep 17 00:00:00 2001 From: Hawtian Wang Date: Thu, 25 Apr 2024 13:56:02 +0800 Subject: [PATCH] ... --- lua/dotvim/pkgs/editor/plugins/obsidian.lua | 2 +- lua/dotvim/pkgs/extra/languages/rust.lua | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lua/dotvim/pkgs/editor/plugins/obsidian.lua b/lua/dotvim/pkgs/editor/plugins/obsidian.lua index a819610b..f728818c 100644 --- a/lua/dotvim/pkgs/editor/plugins/obsidian.lua +++ b/lua/dotvim/pkgs/editor/plugins/obsidian.lua @@ -88,7 +88,7 @@ return { suffix = suffix .. string.char(math.random(65, 90)) end end - return tostring(os.time()) .. "-" .. suffix + return ("%0x-%s"):format(os.time(), suffix) end, note_frontmatter_func = function(note) local out = { diff --git a/lua/dotvim/pkgs/extra/languages/rust.lua b/lua/dotvim/pkgs/extra/languages/rust.lua index 69f7a75a..dde5bdcc 100644 --- a/lua/dotvim/pkgs/extra/languages/rust.lua +++ b/lua/dotvim/pkgs/extra/languages/rust.lua @@ -162,7 +162,17 @@ return { enable = true, }, }, - files = { watcher = "server" }, + files = { + watcher = "server", + excludeDirs = { + ".direnv", + ".devenv", + }, + watcherExclude = { + ".direnv", + ".devenv", + }, + }, lru = { capacity = 1024 * 2 }, }, },