neogit config
This commit is contained in:
parent
af233daff2
commit
90dd454704
4 changed files with 19 additions and 3 deletions
|
@ -333,7 +333,7 @@ Mardkown Preview plugin commands:
|
|||
|
||||
##### Neogit
|
||||
|
||||
Just run `:Neogit` to launch it, `?` for help, changing parameters is
|
||||
Just run `:Neogit` (shortcut: `<leader>ng`) to launch it, `?` for help, changing parameters is
|
||||
done usually by adding `-` before letter assigned to specific option.
|
||||
|
||||
##### Diffview
|
||||
|
|
|
@ -39,6 +39,8 @@ map("n", "<leader>gs", ":Telescope git_status<CR>")
|
|||
map("n", "<leader>gc", ":Telescope git_commits<CR>")
|
||||
map("n", "<leader>gb", ":Telescope git_branches<CR>")
|
||||
|
||||
map("n", "<leader>ng", ":Neogit<CR>")
|
||||
|
||||
-- dap
|
||||
map("n", "<leader>db", ":lua require'dap'.toggle_breakpoint()<CR>")
|
||||
map("n", "<leader>dc", ":lua require'dap'.continue()<CR>")
|
||||
|
|
|
@ -125,9 +125,8 @@ require("lazy").setup({
|
|||
|
||||
-- Only one of these is needed, not both.
|
||||
"nvim-telescope/telescope.nvim", -- optional
|
||||
"ibhagwan/fzf-lua", -- optional
|
||||
},
|
||||
config = true
|
||||
opts = require('plugins.neogit').config
|
||||
},
|
||||
|
||||
{ 'Glench/Vim-Jinja2-Syntax', priority = 15 },
|
||||
|
|
15
lua/plugins/neogit.lua
Normal file
15
lua/plugins/neogit.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
config = {
|
||||
graph_style = "unicode",
|
||||
-- Used to generate URL's for branch popup action "pull request".
|
||||
git_services = {
|
||||
["github.com"] = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1",
|
||||
["bitbucket.org"] =
|
||||
"https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1",
|
||||
["gitlab.com"] =
|
||||
"https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
|
||||
["gitlab.inpl.work"] =
|
||||
"https://gitlab.inpl.work/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue