FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gitlogdiff.nvim/lua/gitlogdiff/init.lua at main · Salanoid/gitlogdiff.nvim · GitHub
Salanoid
/
gitlogdiff.nvim
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
24
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gitlogdiff.nvim
/
lua
/
gitlogdiff
/
init.lua
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 526 Bytes
Breadcrumbs
gitlogdiff.nvim
/
lua
/
gitlogdiff
/
init.lua
Copy path
File metadata and controls
24 lines (20 loc) · 526 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local
M
=
{}
M
.
config
=
{
max_count
=
300
,
--
"auto" picks diffview.nvim if installed, then codediff.nvim.
--
Set to "diffview" or "codediff" to force one.
viewer
=
"
auto
"
,
}
function
M
.
setup
(
opts
)
M
.
config
=
vim
.
tbl_deep_extend
(
"
force
"
,
M
.
config
,
opts
or
{})
end
function
M
.
open
()
require
(
"
gitlogdiff.log
"
).
get_commits
(
function
(
commits
)
if
#
commits
==
0
then
vim
.
notify
(
"
No git commits found
"
,
vim
.
log
.
levels
.
WARN
)
return
end
require
(
"
gitlogdiff.ui
"
).
open
(
commits
)
end
)
end
return
M
Back
|
FazBrowse Home
|
New Git URL