Skip to content

Commit 97f83f1

Browse files
authored
Merge pull request #1643 from brianhuster/master
README: no require users to call `require 'neogit'.setup()`
2 parents 8e265d2 + e801734 commit 97f83f1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,7 @@ Here's an example spec for [Lazy](https://github.com/folke/lazy.nvim), but you'r
3939
"ibhagwan/fzf-lua", -- optional
4040
"echasnovski/mini.pick", -- optional
4141
},
42-
config = true
4342
}
44-
45-
```
46-
47-
If you're not using lazy, you'll need to require and setup the plugin like so:
48-
49-
```lua
50-
-- init.lua
51-
local neogit = require('neogit')
52-
neogit.setup {}
5343
```
5444

5545
## Compatibility
@@ -58,7 +48,7 @@ The `master` branch will always be compatible with the latest **stable** release
5848

5949
## Configuration
6050

61-
You can configure neogit by running the `neogit.setup()` function, passing a table as the argument.
51+
You can configure neogit by running the `require('neogit').setup {}` function, passing a table as the argument.
6252

6353
<details>
6454
<summary>Default Config</summary>

0 commit comments

Comments
 (0)