[Release] release v0.0.6 (#7)

* [Release] bump to 0.0.6

* [Fix] mistake description for how to setup

* [Fix] render watermark use config
This commit is contained in:
Mist 2024-02-23 16:13:54 +08:00 committed by GitHub
parent 150340f1a2
commit 7c6d04c2ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -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:

View file

@ -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"

View file

@ -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 (
<div className="w-full h-full flex flex-col items-center bg-deep-gray">
<p className="rainbow-text text-4xl font-extrabold mt-20">
CodeSnap.nvim
{config?.watermark ?? WATER_MARK_PLACEHOLDER}
</p>
<Panel>
<ControlBar