fix: style errors

This commit is contained in:
Brian Ryall 2021-11-22 16:13:22 -05:00
parent c50c764c5d
commit 61fe69727b
2 changed files with 15 additions and 4 deletions

View File

@ -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

View File

@ -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