mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-26 11:26:30 +00:00
[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:
parent
150340f1a2
commit
7c6d04c2ec
3 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue