neogit config
All checks were successful
Build neovim image / build-neovim-amd64 (push) Successful in 16m30s
Build neovim image / build-neovim-arm64 (push) Successful in 19m9s
Build neovim image / update-images-manifest (push) Successful in 14s

This commit is contained in:
Szwendacz 2024-04-11 13:29:27 +02:00 committed by Maciej Lebiest
parent af233daff2
commit 90dd454704
4 changed files with 19 additions and 3 deletions

View file

@ -333,7 +333,7 @@ Mardkown Preview plugin commands:
##### Neogit ##### 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. done usually by adding `-` before letter assigned to specific option.
##### Diffview ##### Diffview

View file

@ -39,6 +39,8 @@ map("n", "<leader>gs", ":Telescope git_status<CR>")
map("n", "<leader>gc", ":Telescope git_commits<CR>") map("n", "<leader>gc", ":Telescope git_commits<CR>")
map("n", "<leader>gb", ":Telescope git_branches<CR>") map("n", "<leader>gb", ":Telescope git_branches<CR>")
map("n", "<leader>ng", ":Neogit<CR>")
-- dap -- dap
map("n", "<leader>db", ":lua require'dap'.toggle_breakpoint()<CR>") map("n", "<leader>db", ":lua require'dap'.toggle_breakpoint()<CR>")
map("n", "<leader>dc", ":lua require'dap'.continue()<CR>") map("n", "<leader>dc", ":lua require'dap'.continue()<CR>")

View file

@ -125,9 +125,8 @@ require("lazy").setup({
-- Only one of these is needed, not both. -- Only one of these is needed, not both.
"nvim-telescope/telescope.nvim", -- optional "nvim-telescope/telescope.nvim", -- optional
"ibhagwan/fzf-lua", -- optional
}, },
config = true opts = require('plugins.neogit').config
}, },
{ 'Glench/Vim-Jinja2-Syntax', priority = 15 }, { 'Glench/Vim-Jinja2-Syntax', priority = 15 },

15
lua/plugins/neogit.lua Normal file
View 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}",
},
}
}