forked from mirror/codesnap.nvim
[Release] release v0.0.6 (#7)
* [Release] bump to 0.0.6 * [Fix] mistake description for how to setup * [Fix] render watermark use configfeature/custom-highlight-themes v0.0.6
parent
150340f1a2
commit
7c6d04c2ec
|
@ -51,7 +51,7 @@ CodeSnap # Take a code snap and copy it into the clipboard
|
||||||
## Configuration
|
## Configuration
|
||||||
Define your custom config using `setup` function
|
Define your custom config using `setup` function
|
||||||
```lua
|
```lua
|
||||||
require("codesnap.nvim").setup({...})
|
require("codesnap").setup({...})
|
||||||
```
|
```
|
||||||
|
|
||||||
There is a default config:
|
There is a default config:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "codesnap.nvim"
|
name = "codesnap.nvim"
|
||||||
version = "0.0.5"
|
version = "0.0.6"
|
||||||
description = "Make pretty code snapshot just one command"
|
description = "Make pretty code snapshot just one command"
|
||||||
author = "Mist"
|
author = "Mist"
|
||||||
email = "mist.zzh@gmail.com"
|
email = "mist.zzh@gmail.com"
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { toPng, toBlob } from "html-to-image";
|
||||||
import download from "downloadjs";
|
import download from "downloadjs";
|
||||||
|
|
||||||
const CODE_EMPTY_PLACEHOLDER = `print "Hello, CodeSnap.nvim!"`;
|
const CODE_EMPTY_PLACEHOLDER = `print "Hello, CodeSnap.nvim!"`;
|
||||||
|
const WATER_MARK_PLACEHOLDER = "CodeSnap.nvim";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [socketUrl] = useState(`ws://${window.location.host}/ws`);
|
const [socketUrl] = useState(`ws://${window.location.host}/ws`);
|
||||||
|
@ -65,7 +66,7 @@ function App() {
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-full flex flex-col items-center bg-deep-gray">
|
<div className="w-full h-full flex flex-col items-center bg-deep-gray">
|
||||||
<p className="rainbow-text text-4xl font-extrabold mt-20">
|
<p className="rainbow-text text-4xl font-extrabold mt-20">
|
||||||
CodeSnap.nvim
|
{config?.watermark ?? WATER_MARK_PLACEHOLDER}
|
||||||
</p>
|
</p>
|
||||||
<Panel>
|
<Panel>
|
||||||
<ControlBar
|
<ControlBar
|
||||||
|
|
Loading…
Reference in New Issue