added harpoon keybinds, start fzf_harpoon, ignore some ftplugin files

This commit is contained in:
2022-12-01 03:37:23 -06:00
parent e5b73c120b
commit a2f952e7ae
3 changed files with 28 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
local M = {}
-- Grabbed from harpoon code
function M.get_marked_files()
local Marked = require("harpoon.mark")
local contents = {}
for idx = 1, Marked.get_length() do
local file = Marked.get_marked_file_name(idx)
if file == "" then
file = "(empty)"
end
contents[idx] = string.format("%s", file)
end
return contents
end
return M
+6
View File
@@ -2,6 +2,10 @@ local helpers = require("helpers")
local map = helpers.map
local lsp_config_defaults = helpers.lsp_config_defaults
local function nmap(...)
map("n", ...)
end
local M = {}
function M.hop()
@@ -66,6 +70,8 @@ function M.harpoon()
excluded_filetypes = { "harpoon" },
},
})
nmap("<Leader>a", ":lua require('harpoon.mark').add_file()<CR>")
nmap("<Leader>m", ":lua require('harpoon.ui').toggle_quick_menu()<CR>")
end
function M.auto_session()