1
0
Fork 0

[Release] release v0.0.6 (#7)

* [Release] bump to 0.0.6

* [Fix] mistake description for how to setup

* [Fix] render watermark use config
feature/custom-highlight-themes v0.0.6
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