From 0b0cb79bf8f2efe2887782201cb165e49b1d2fb9 Mon Sep 17 00:00:00 2001 From: Mist Date: Wed, 3 Apr 2024 17:49:26 +0800 Subject: [PATCH] [Update] default config & perf usage chapter --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f2a9b41..03733d4 100644 --- a/README.md +++ b/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 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 are something to display the current snapshot file path, you can open it through config `has_breadcrumbs`: ```lua @@ -246,7 +246,9 @@ There is a default config: code_font_family = "CaskaydiaCove Nerd Font", watermark_font_family = "Pacifico", watermark = "CodeSnap.nvim", - bg_theme = "default" + bg_theme = "default", + breadcrumbs_separator = "/", + has_breadcrumbs = false, } ```