Skip to content

Commit

Permalink
Merge branch 'feature/harpoon'
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Nov 6, 2023
2 parents 080968c + ce9ba1b commit 9ab9f78
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/custom/configs/marks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ return {
'dapui_stacks',
'dapui_scopes',
'dapui_breakpoints',
'harpoon',
},
bookmark_1 = { sign = "1", virt_text = "🐮 1", annotate = false },
bookmark_2 = { sign = "2", virt_text = "🐮 2", annotate = false },
Expand Down
43 changes: 43 additions & 0 deletions lua/custom/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ M.tabufline = {
["-b"] = {
function()
-- require("tabscope").remove_tab_buffer()
-- require("tabscope").close_buffer()
vim.cmd("bwipeout")
end,
"Close buffer",
Expand Down Expand Up @@ -625,6 +626,48 @@ M.dapui = {
-- TODO: 범위 코드 evaluation
}
}
M.harpoon = {
n = {
["<leader>hh"] = {
function ()
require('harpoon.ui').toggle_quick_menu()
end,
"harpoon: toggle quick menu"
},
["]h"] = {
function ()
require('harpoon.ui').nav_next()
end,
"harpoon: nav next"
},
["[h"] = {
function ()
require('harpoon.ui').nav_prev()
end,
"harpoon: nav prev"
},
["<leader>ha"] = {
function ()
require('harpoon.mark').add_file()
vim.notify(string.format('mark'))
end,
"harpoon: add mark"
},
["<leader>hd"] = {
function ()
require('harpoon.mark').rm_file()
vim.notify(string.format('unmark'))
end,
"harpoon: remove mark"
},
["<leader>hf"] = {
function ()
vim.cmd('Telescope harpoon marks')
end,
"harpoon: toggle quick menu: cmd"
},
}
}
M.wip = {
n = {
["<leader>;"] = {
Expand Down
7 changes: 6 additions & 1 deletion lua/custom/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local file_exists = require "lab.gx.lib.file_exists"
return {
{
"neovim/nvim-lspconfig",
Expand Down Expand Up @@ -352,4 +351,10 @@ return {
end,
event = 'LspAttach'
},
{
'ThePrimeagen/harpoon',
config = function ()
require("telescope").load_extension("harpoon")
end,
}
}

0 comments on commit 9ab9f78

Please sign in to comment.