1
0
Fork 0

[Update] default config & perf usage chapter

main
Mist 2024-04-03 17:49:26 +08:00 committed by GitHub
parent f616da253f
commit 0b0cb79bf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -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,
} }
``` ```