summaryrefslogtreecommitdiff
path: root/lua/lvim
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-10-31 16:27:12 +0100
committerGitHub <[email protected]>2022-10-31 16:27:12 +0100
commit74ad56ff68f9853a3cdb6004bf01162911bcadd6 (patch)
treeacc38539db66a6d8dba7ca2d6e3f273ff6a3b125 /lua/lvim
parent3d6338e16ee7f03de3de303e2de6d5ec5e37ba93 (diff)
refactor(installer): skip unstable headless update (#3338)
Diffstat (limited to 'lua/lvim')
-rw-r--r--lua/lvim/core/log.lua4
-rw-r--r--lua/lvim/plugin-loader.lua7
2 files changed, 4 insertions, 7 deletions
diff --git a/lua/lvim/core/log.lua b/lua/lvim/core/log.lua
index a0af3683..c4f727be 100644
--- a/lua/lvim/core/log.lua
+++ b/lua/lvim/core/log.lua
@@ -20,8 +20,6 @@ function Log:set_level(level)
for _, s in ipairs(logger.sinks) do
s.level = log_level
end
- else
- vim.notify_once("Unable to set logger's level to " .. level)
end
local packer_ok, _ = xpcall(function()
@@ -87,7 +85,7 @@ function Log:init()
-- https://github.com/neovim/neovim/blob/685cf398130c61c158401b992a1893c2405cd7d2/runtime/lua/vim/lsp/log.lua#L5
vim_log_level = vim_log_level + 1
end
-
+
self:add_entry(vim_log_level, msg)
end
end
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua
index f6cb4651..1f574bba 100644
--- a/lua/lvim/plugin-loader.lua
+++ b/lua/lvim/plugin-loader.lua
@@ -42,11 +42,10 @@ function plugin_loader.init(opts)
end
if not utils.is_directory(install_path) then
- vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
+ print "Initializing first time setup"
+ print "Installing packer"
+ print(vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd "packadd packer.nvim"
- -- IMPORTANT: we only set this the very first time to avoid constantly triggering the rollback function
- -- https://github.com/wbthomason/packer.nvim/blob/c576ab3f1488ee86d60fd340d01ade08dcabd256/lua/packer.lua#L998-L995
- init_opts.snapshot = default_snapshot
end
local status_ok, packer = pcall(require, "packer")