style: cleanup

This commit is contained in:
Folke Lemaitre 2022-11-30 23:14:16 +01:00
parent a197f751f9
commit a87b6e1005
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 39 additions and 21 deletions

View file

@ -10,14 +10,22 @@ M.defaults = {
version = nil,
-- version = "*", -- enable this to try installing the latest stable versions of plugins
},
packpath = vim.fn.stdpath("data") .. "/site/pack/lazy", -- package path where new plugins will be installed
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update.
install_missing = true, -- install missing plugins on startup. This doesn't increase startup time.
git = {
-- defaults for `Lazy log`
-- log = { "-10" }, -- last 10 commits
log = { "--since=1 days ago" }, -- commits from the last 3 days
},
-- Any plugin spec that contains one of the patterns will use your
-- local repo in the projects folder instead of fetchig it from github
-- Mostly useful for plugin developers.
dev = {
path = vim.fn.expand("~/projects"), -- the path where you store your projects
---@type string[]
patterns = {}, -- For example {"folke"}
},
packpath = vim.fn.stdpath("data") .. "/site/pack/lazy",
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json",
view = {
ui = {
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
border = "none",
@ -32,11 +40,6 @@ M.defaults = {
ft = "",
task = "",
},
install_missing = true,
git = {
-- defaults for `Lazy log`
log = { "-10" }, -- last 10 commits
-- log = { "--since=3 days ago" }, -- commits from the last 3 days
throttle = 20, -- how frequently should the ui process render events
},
}

View file

@ -111,9 +111,7 @@ function M.autosave()
local hash = M.hash(cache_path)
-- abort when the file was changed in the meantime
if hash == nil or M.eq(cache_hash, hash) then
vim.fn.system("echo start >> foo.txt")
M.save_cache()
vim.fn.system("echo stop >> foo.txt")
end
end
end,