From 7c6d04c2ecdc51a98d9aab87b2f72b991209881f Mon Sep 17 00:00:00 2001 From: Mist Date: Fri, 23 Feb 2024 16:13:54 +0800 Subject: [PATCH] [Release] release v0.0.6 (#7) * [Release] bump to 0.0.6 * [Fix] mistake description for how to setup * [Fix] render watermark use config --- README.md | 2 +- project.toml | 2 +- snap-client/src/app.tsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd566f4..0becb17 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ CodeSnap # Take a code snap and copy it into the clipboard ## Configuration Define your custom config using `setup` function ```lua -require("codesnap.nvim").setup({...}) +require("codesnap").setup({...}) ``` There is a default config: diff --git a/project.toml b/project.toml index 78f9469..d63d200 100644 --- a/project.toml +++ b/project.toml @@ -1,6 +1,6 @@ [project] name = "codesnap.nvim" -version = "0.0.5" +version = "0.0.6" description = "Make pretty code snapshot just one command" author = "Mist" email = "mist.zzh@gmail.com" diff --git a/snap-client/src/app.tsx b/snap-client/src/app.tsx index 650c619..db7adfa 100644 --- a/snap-client/src/app.tsx +++ b/snap-client/src/app.tsx @@ -6,6 +6,7 @@ import { toPng, toBlob } from "html-to-image"; import download from "downloadjs"; const CODE_EMPTY_PLACEHOLDER = `print "Hello, CodeSnap.nvim!"`; +const WATER_MARK_PLACEHOLDER = "CodeSnap.nvim"; function App() { const [socketUrl] = useState(`ws://${window.location.host}/ws`); @@ -65,7 +66,7 @@ function App() { return (

- CodeSnap.nvim + {config?.watermark ?? WATER_MARK_PLACEHOLDER}