added harpoon keybinds, start fzf_harpoon, ignore some ftplugin files
This commit is contained in:
@@ -1 +1,4 @@
|
||||
packer_compiled.lua
|
||||
ftplugin/html.lua
|
||||
ftplugin/json.lua
|
||||
ftplugin/typescript.lua
|
||||
|
||||
@@ -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
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user