Skip to content

Commit 75c9025

Browse files
committed
feat(setup)!: make optional
1 parent 0a7291a commit 75c9025

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/src/routes/configuration/+page.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
title: Configuration
33
---
44

5+
## Setup
6+
7+
The default configuration below is applied when the plugin is _loaded_ (**no `setup` call required**). You can tweak the options by calling `require"dap-view".setup(opts)` or using your plugin manager's features (e.g., `lazy.nvim`'s `opts`). Your options are **deep merged** with the defaults, so you only have to override what you actually want to change.
8+
59
## Defaults
610

711
These are the default options for `nvim-dap-view`.

plugin/dap-view.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ end, {
4545
nargs = 1,
4646
bang = true,
4747
})
48+
49+
require("dap-view").setup()

0 commit comments

Comments
 (0)