mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
fix: style errors
This commit is contained in:
parent
c50c764c5d
commit
61fe69727b
@ -59,7 +59,10 @@ 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("ensure_correct_config(): No config found for:", vim.loop.cwd())
|
log.debug(
|
||||||
|
"ensure_correct_config(): No config found for:",
|
||||||
|
vim.loop.cwd()
|
||||||
|
)
|
||||||
projects[vim.loop.cwd()] = {
|
projects[vim.loop.cwd()] = {
|
||||||
mark = {
|
mark = {
|
||||||
marks = {},
|
marks = {},
|
||||||
@ -77,7 +80,10 @@ local function ensure_correct_config(config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if proj.term == nil then
|
if proj.term == nil then
|
||||||
log.debug("ensure_correct_config(): No terminal commands found for", vim.loop.cwd())
|
log.debug(
|
||||||
|
"ensure_correct_config(): No terminal commands found for",
|
||||||
|
vim.loop.cwd()
|
||||||
|
)
|
||||||
proj.term = { cmds = {} }
|
proj.term = { cmds = {} }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -51,8 +51,13 @@ local generate_new_finder = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local delete_harpoon_mark = function(prompt_bufnr)
|
local delete_harpoon_mark = function(prompt_bufnr)
|
||||||
local confirmation = vim.fn.input(string.format("Delete current mark? [y/n]: "))
|
local confirmation = vim.fn.input(
|
||||||
if string.len(confirmation) == 0 or string.sub(string.lower(confirmation), 0, 1) ~= "y" then
|
string.format("Delete current mark? [y/n]: ")
|
||||||
|
)
|
||||||
|
if
|
||||||
|
string.len(confirmation) == 0
|
||||||
|
or string.sub(string.lower(confirmation), 0, 1) ~= "y"
|
||||||
|
then
|
||||||
print(string.format("Didn't delete mark"))
|
print(string.format("Didn't delete mark"))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user