mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
style: make stylua happy
This commit is contained in:
@@ -272,7 +272,9 @@ local function check_dir_and_ask(dir, purpose)
|
|||||||
.. " Shall I create it? ",
|
.. " Shall I create it? ",
|
||||||
}, function(answer)
|
}, function(answer)
|
||||||
if answer == "Yes" then
|
if answer == "Yes" then
|
||||||
if Path:new(dir):mkdir({ parents=true, exists_ok = false }) then
|
if
|
||||||
|
Path:new(dir):mkdir({ parents = true, exists_ok = false })
|
||||||
|
then
|
||||||
vim.cmd('echomsg " "')
|
vim.cmd('echomsg " "')
|
||||||
vim.cmd('echomsg "' .. dir .. ' created"')
|
vim.cmd('echomsg "' .. dir .. ' created"')
|
||||||
ret = true
|
ret = true
|
||||||
@@ -2257,7 +2259,6 @@ local function FollowLink(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if search_mode == "files" then
|
if search_mode == "files" then
|
||||||
|
|
||||||
-- check if subdir exists
|
-- check if subdir exists
|
||||||
local filepath = title:match("(.*/)") or ""
|
local filepath = title:match("(.*/)") or ""
|
||||||
filepath = M.Cfg.home .. "/" .. filepath
|
filepath = M.Cfg.home .. "/" .. filepath
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function M.prompt_title(ext, defaultFile, callback)
|
|||||||
prompt = "Title: ",
|
prompt = "Title: ",
|
||||||
cancelreturn = canceledStr,
|
cancelreturn = canceledStr,
|
||||||
completion = "file",
|
completion = "file",
|
||||||
default = defaultFile
|
default = defaultFile,
|
||||||
}, function(title)
|
}, function(title)
|
||||||
if not title then
|
if not title then
|
||||||
title = ""
|
title = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user