Skip to content

Commit

Permalink
[Release] release v0.0.6 (#7)
Browse files Browse the repository at this point in the history
* [Release] bump to 0.0.6

* [Fix] mistake description for how to setup

* [Fix] render watermark use config
  • Loading branch information
mistricky authored Feb 23, 2024
1 parent 150340f commit 7c6d04c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion project.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"
3 changes: 2 additions & 1 deletion snap-client/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7c6d04c

Please sign in to comment.