You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Thank you for taking time to contribute to this plugin! Please follow these step
6
6
7
7
It's possible that the feature you want is already implemented, or does not belong in `gitlab.nvim` at all. By creating an issue first you can have a conversation with the maintainers about the functionality first. While this is not strictly necessary, it greatly increases the likelihood that your merge request will be accepted.
8
8
9
-
2. Fork the repository, and create a new feature branch for your desired functionality. Make your changes.
9
+
2. Fork the repository, and create a new feature branch off the `develop` branch for your desired functionality. Make your changes.
10
10
11
11
If you are using Lazy as a plugin manager, the easiest way to work on changes is by setting a specific path for the plugin that points to your repository locally. This is what I do:
@@ -36,47 +35,48 @@ For more detailed information about the Lua APIs please run `:h gitlab.nvim.api`
36
35
With <ahref="https://github.com/folke/lazy.nvim">Lazy</a>:
37
36
38
37
```lua
39
-
return{
38
+
{
40
39
"harrisoncramer/gitlab.nvim",
41
40
dependencies= {
42
41
"MunifTanjim/nui.nvim",
43
42
"nvim-lua/plenary.nvim",
44
43
"sindrets/diffview.nvim",
45
44
"stevearc/dressing.nvim", -- Recommended but not required. Better UI for pickers.
46
-
"nvim-tree/nvim-web-devicons" -- Recommended but not required. Icons in discussion tree.
45
+
"nvim-tree/nvim-web-devicons",-- Recommended but not required. Icons in discussion tree.
47
46
},
48
-
enabled=true,
49
47
build=function () require("gitlab.server").build(true) end, -- Builds the Go binary
50
48
config=function()
51
49
require("gitlab").setup()
52
50
end,
53
51
}
54
52
```
55
53
56
-
And with Packer:
54
+
And with <ahref="https://github.com/lewis6991/pckr.nvim">pckr.nvim</a>:
57
55
58
56
```lua
59
-
use {
60
-
"harrisoncramer/gitlab.nvim",
61
-
requires= {
62
-
"MunifTanjim/nui.nvim",
63
-
"nvim-lua/plenary.nvim",
64
-
"sindrets/diffview.nvim"
65
-
"stevearc/dressing.nvim", -- Recommended but not required. Better UI for pickers.
66
-
"nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree.
67
-
},
68
-
build=function()
69
-
require("gitlab.server").build()
70
-
end,
71
-
branch="develop",
72
-
config=function()
73
-
require("diffview") -- We require some global state from diffview
74
-
localgitlab=require("gitlab")
75
-
gitlab.setup()
76
-
end,
77
-
}
57
+
{
58
+
"harrisoncramer/gitlab.nvim",
59
+
requires= {
60
+
"MunifTanjim/nui.nvim",
61
+
"nvim-lua/plenary.nvim",
62
+
"sindrets/diffview.nvim",
63
+
"stevearc/dressing.nvim", -- Recommended but not required. Better UI for pickers.
64
+
"nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree.
65
+
},
66
+
run=function() require("gitlab.server").build() end, -- Builds the Go binary
67
+
config=function()
68
+
require("diffview") -- We require some global state from diffview
69
+
require("gitlab").setup()
70
+
end,
71
+
}
78
72
```
79
73
74
+
Add `branch = "develop",` to your configuration if you want to use the (possibly unstable) development version of `gitlab.nvim`.
75
+
76
+
## Contributing
77
+
78
+
Contributions to the plugin are welcome. Please read [.github/CONTRIBUTING.md](.github/CONTRIBUTING.md) before you start working on a pull request.
79
+
80
80
## Connecting to Gitlab
81
81
82
82
This plugin requires an <ahref="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token">auth token</a> to connect to Gitlab. The token can be set in the root directory of the project in a `.gitlab.nvim` environment file, or can be set via a shell environment variable called `GITLAB_TOKEN` instead. If both are present, the `.gitlab.nvim` file will take precedence.
@@ -122,7 +122,3 @@ For a list of all these settings please run `:h gitlab.nvim.configuring-the-plug
122
122
The plugin sets up a number of useful keybindings in the special buffers it creates, and some global keybindings as well. Refer to the relevant section of the manual `:h gitlab.nvim.keybindings` for more details.
123
123
124
124
For more information about each of these commands, and about the APIs in general, run `:h gitlab.nvim.api`
125
-
126
-
## Contributing
127
-
128
-
Contributions to the plugin are welcome. Please read [.github/CONTRIBUTING.md](.github/CONTRIBUTING.md) before you start working on a pull request.
0 commit comments