[Update] default config & perf usage chapter
parent
f616da253f
commit
0b0cb79bf8
10
README.md
10
README.md
|
@ -114,6 +114,9 @@ require("codesnap").setup({
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-8516-89ce636fe02d
|
||||||
|
|
||||||
|
|
||||||
### Specify language extension
|
### Specify language extension
|
||||||
In some scenarios, CodeSnap.nvim cannot auto-detect what language syntax should used to highlight code, for example, shell script can have no extension, they specify interpreters using shebang.
|
In some scenarios, CodeSnap.nvim cannot auto-detect what language syntax should used to highlight code, for example, shell script can have no extension, they specify interpreters using shebang.
|
||||||
|
|
||||||
|
@ -125,9 +128,6 @@ CodeSnap sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-8516-89ce636fe02d
|
|
||||||
|
|
||||||
|
|
||||||
## Breadcrumbs
|
## Breadcrumbs
|
||||||
Breadcrumbs are something to display the current snapshot file path, you can open it through config `has_breadcrumbs`:
|
Breadcrumbs are something to display the current snapshot file path, you can open it through config `has_breadcrumbs`:
|
||||||
```lua
|
```lua
|
||||||
|
@ -246,7 +246,9 @@ There is a default config:
|
||||||
code_font_family = "CaskaydiaCove Nerd Font",
|
code_font_family = "CaskaydiaCove Nerd Font",
|
||||||
watermark_font_family = "Pacifico",
|
watermark_font_family = "Pacifico",
|
||||||
watermark = "CodeSnap.nvim",
|
watermark = "CodeSnap.nvim",
|
||||||
bg_theme = "default"
|
bg_theme = "default",
|
||||||
|
breadcrumbs_separator = "/",
|
||||||
|
has_breadcrumbs = false,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue