From 978a18354cef5c2ab01001616aa8b228c0cb4565 Mon Sep 17 00:00:00 2001 From: The Mist Date: Tue, 7 May 2024 21:40:37 +0800 Subject: [PATCH] [Update] add usage for the show_workspace config item --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 5863afe..4185fd7 100644 --- a/README.md +++ b/README.md @@ -227,6 +227,23 @@ require("codesnap").setup({ The breadcrumbs look like: ![image](https://github.com/mistricky/codesnap.nvim/assets/22574136/23274faa-36a9-4d41-88a5-e48c44b4d5bf) +### Show workspace in breadcrumbs +Breadcrumbs hide the workspace name by default, if you want to display workspace in breadcrumbs, you can just set `show_workspace` as true. +```lua +require("codesnap").setup({ + -- ... + has_breadcrumbs = true + show_workspace = true +}) +``` + +require("codesnap").setup({ + -- ... + has_breadcrumbs = true + breadcrumbs_separator = "👉" +}) + + ### 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