mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-27 03:46:29 +00:00
[Update] add docs for use breadcrumbs
This commit is contained in:
parent
272e89ff8e
commit
8d2c3714e1
1 changed files with 26 additions and 1 deletions
27
README.md
27
README.md
|
@ -81,8 +81,33 @@ require("codesnap").setup({
|
||||||
https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-8516-89ce636fe02d
|
https://github.com/mistricky/codesnap.nvim/assets/22574136/69b27e77-3dce-4bc3-8516-89ce636fe02d
|
||||||
|
|
||||||
|
|
||||||
|
## Breadcrumbs
|
||||||
|
Breadcrumbs are something to display the current snapshot file path, you can open it through config `has_breadcrumbs`:
|
||||||
|
```lua
|
||||||
|
require("codesnap").setup({
|
||||||
|
-- ...
|
||||||
|
has_breadcrumbs = true
|
||||||
|
})
|
||||||
|
```
|
||||||
|
The breadcrumbs look like:
|
||||||
|
![image](https://github.com/mistricky/codesnap.nvim/assets/22574136/23274faa-36a9-4d41-88a5-e48c44b4d5bf)
|
||||||
|
|
||||||
|
### Custom path separator
|
||||||
|
The CodeSnap.nvim uses `/` as the separator of the file path by default, of course, you can specify any symbol you prefer as the custom separator:
|
||||||
|
```lua
|
||||||
|
require("codesnap").setup({
|
||||||
|
-- ...
|
||||||
|
has_breadcrumbs = true
|
||||||
|
breadcrumbs_separator = "👉"
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
![image](https://github.com/mistricky/codesnap.nvim/assets/22574136/84b80d0f-1467-4bdf-9cbd-aede868f93aa)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Custom background
|
## Custom background
|
||||||
The `CodeSnap.nvim` comes with many beautify backgrounds preset, you can set any background you like by setting `bg_theme` to its name, just like:
|
The `CodeSnap.nvim` comes with many beautiful backgrounds preset, you can set any background you like by setting `bg_theme` to its name, just like:
|
||||||
```lua
|
```lua
|
||||||
require("codesnap").setup({
|
require("codesnap").setup({
|
||||||
-- The "default" background is one you see at the beginning of the README
|
-- The "default" background is one you see at the beginning of the README
|
||||||
|
|
Loading…
Reference in a new issue