FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nvim-setup/lua/coderxin/plugins/harpoon.lua at main · coderxin/nvim-setup · GitHub
coderxin
/
nvim-setup
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
nvim-setup
/
lua
/
coderxin
/
plugins
/
harpoon.lua
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 595 Bytes
Breadcrumbs
nvim-setup
/
lua
/
coderxin
/
plugins
/
harpoon.lua
Copy path
File metadata and controls
21 lines (17 loc) · 595 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
--
import harpoon.mark safely
local
mark_setup
,
mark
=
pcall
(
require
,
"
harpoon.mark
"
)
if
not
mark_setup
then
return
end
--
import harpoon.ui safely
local
ui_setup
,
ui
=
pcall
(
require
,
"
harpoon.ui
"
)
if
not
ui_setup
then
return
end
local
keymap
=
vim
.
keymap
keymap
.
set
(
"
n
"
,
"
<leader>a
"
,
mark
.
add_file
)
keymap
.
set
(
"
n
"
,
"
<C-e>
"
,
ui
.
toggle_quick_menu
)
keymap
.
set
(
"
n
"
,
"
<leader>1
"
,
function
()
ui
.
nav_file
(
1
)
end
)
keymap
.
set
(
"
n
"
,
"
<leader>2
"
,
function
()
ui
.
nav_file
(
2
)
end
)
keymap
.
set
(
"
n
"
,
"
<leader>3
"
,
function
()
ui
.
nav_file
(
3
)
end
)
keymap
.
set
(
"
n
"
,
"
<leader>4
"
,
function
()
ui
.
nav_file
(
4
)
end
)
Back
|
FazBrowse Home
|
New Git URL