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}