Skip to content

Commit 6d647aa

Browse files
committed
docs: improve readme and complete configuration options
1 parent 39c2819 commit 6d647aa

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# gitforge.nvim - Issues, PRs, CI/CD
22

3-
This plugin aims to provide integrated access to various Git Forges for your daily development
4-
tasks - working with issues, working with PRs and checking CI/CD pipelines.
5-
Its goal is being a workhorse plugin that is reliable and stable.
3+
- list, comment and change issues on GitLab and Github
4+
- pin relevant issues for you and have them available without searching for them
65

76
> [!WARNING]
87
> This plugin is in an early development state. Things may not work, they are clumsy and may break
98
> randomly after an update.
109
> Please keep this in mind.
1110
11+
This plugin aims to provide integrated access to various Git Forges for your daily development
12+
tasks - working with issues, working with PRs and checking CI/CD pipelines.
13+
Its goal is being a workhorse plugin that is reliable and stable.
14+
1215
You can read more about the goals and development milestones under [development resources](development_resources/README.md).
1316

1417
## Installation
@@ -122,7 +125,7 @@ See [docs/configuration.md](docs/configuration.md) for more information on how t
122125
123126
### General Capabilities
124127
125-
- [ ] Project Specific configuration to use different backends for different repositories
128+
- [x] Project Specific configuration to use different backends for different repositories
126129
- [x] Proper Commands for more efficient lazy loading
127130
128131
### Issues

docs/configuration.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,33 @@ The out-of-the-box experience will use Github.
88
General settings that change the default experience:
99

1010
```lua
11+
-- Timeout of provider-commands.
1112
M.opts.timeout = 3500
1213
-- one of:
1314
-- gh
1415
-- glab
1516
M.opts.default_issue_provider = "gh"
17+
-- Number of character after cut-off in telescope list view.
18+
M.opts.list_max_title_length = 60
19+
```
20+
21+
## Project Settings
22+
23+
It is possible to selectively configure specific directories to change their project setings.
24+
When creating the issue provider, all elements are searched in order. For the first entry that
25+
matches its `path` with `nvim`s current working directory is selected for configuration. Paths
26+
are expanded and normalized before matching. Matching is done on a prefix-searching.
27+
28+
```lua
29+
-- Only 'path' is mandatory. At least one more other element should be provided to have an effect.
30+
opts.projects = {
31+
-- Configure this project to use GitLab instead of Github.
32+
{ path = "~/software/my-project", issue_provider = "glab" },
33+
-- A clone of 'https://github.com/gl-cli/glab', that uses issues from 'https://gitlab.com/gitlab-org/cli'.
34+
{ path = "~/software/glab", issue_provider = "glab", project = "gitlab.com/gitlab-org/cli" },
35+
-- My own fork of LLVM, but issues are taken from the upstream repository.
36+
{ path = "~/software/llvm-project", issue_provider = "gh", project = "github.com/llvm/llvm-project" },
37+
}
1638
```
1739

1840
## Issue Settings
@@ -29,6 +51,7 @@ opts.issue_keys = {
2951
assignees = "<localleader>a"
3052
description = "<localleader>d"
3153
state = "<localleader>s"
54+
pin = "<localleader>p"
3255
webview = "<localleader>w"
3356
}
3457
```

0 commit comments

Comments
 (0)