mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
fix: formatting errors
This commit is contained in:
parent
7d364f8be7
commit
0b13c43c3e
@ -59,10 +59,7 @@ local function ensure_correct_config(config)
|
|||||||
log.trace("_ensure_correct_config()")
|
log.trace("_ensure_correct_config()")
|
||||||
local projects = config.projects
|
local projects = config.projects
|
||||||
if projects[vim.loop.cwd()] == nil then
|
if projects[vim.loop.cwd()] == nil then
|
||||||
log.debug(
|
log.debug("ensure_correct_config(): No config found for:", vim.loop.cwd())
|
||||||
"ensure_correct_config(): No config found for:",
|
|
||||||
vim.loop.cwd()
|
|
||||||
)
|
|
||||||
projects[vim.loop.cwd()] = {
|
projects[vim.loop.cwd()] = {
|
||||||
mark = {
|
mark = {
|
||||||
marks = {},
|
marks = {},
|
||||||
@ -80,10 +77,7 @@ local function ensure_correct_config(config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if proj.term == nil then
|
if proj.term == nil then
|
||||||
log.debug(
|
log.debug("ensure_correct_config(): No terminal commands found for", vim.loop.cwd())
|
||||||
"ensure_correct_config(): No terminal commands found for",
|
|
||||||
vim.loop.cwd()
|
|
||||||
)
|
|
||||||
proj.term = { cmds = {} }
|
proj.term = { cmds = {} }
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -159,13 +153,7 @@ M.setup = function(config)
|
|||||||
["enter_on_sendcmd"] = false,
|
["enter_on_sendcmd"] = false,
|
||||||
["excluded_filetypes"] = { "harpoon" },
|
["excluded_filetypes"] = { "harpoon" },
|
||||||
},
|
},
|
||||||
}, expand_dir(
|
}, expand_dir(c_config), expand_dir(u_config), expand_dir(config))
|
||||||
c_config
|
|
||||||
), expand_dir(
|
|
||||||
u_config
|
|
||||||
), expand_dir(
|
|
||||||
config
|
|
||||||
))
|
|
||||||
|
|
||||||
-- There was this issue where the vim.loop.cwd() didn't have marks or term, but had
|
-- There was this issue where the vim.loop.cwd() didn't have marks or term, but had
|
||||||
-- an object for vim.loop.cwd()
|
-- an object for vim.loop.cwd()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user