mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-24 03:05:25 +02:00
revert: fix Packer instead of hard-coding config (#3049)
This commit is contained in:
parent
4bd26928e5
commit
31af25f6a1
4 changed files with 48 additions and 53 deletions
|
@ -49,13 +49,6 @@ M.config = function()
|
||||||
depth_limit_indicator = "..",
|
depth_limit_indicator = "..",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
local status_ok, navic = pcall(require, "nvim-navic")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
navic.setup(lvim.builtin.breadcrumbs.options)
|
|
||||||
M.create_winbar()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
M.setup = function()
|
M.setup = function()
|
||||||
|
@ -64,6 +57,7 @@ M.setup = function()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
M.create_winbar()
|
||||||
navic.setup(lvim.builtin.breadcrumbs.options)
|
navic.setup(lvim.builtin.breadcrumbs.options)
|
||||||
|
|
||||||
if lvim.builtin.breadcrumbs.on_config_done then
|
if lvim.builtin.breadcrumbs.on_config_done then
|
||||||
|
|
|
@ -4,14 +4,7 @@ M.config = function()
|
||||||
lvim.builtin.illuminate = {
|
lvim.builtin.illuminate = {
|
||||||
active = true,
|
active = true,
|
||||||
on_config_done = nil,
|
on_config_done = nil,
|
||||||
}
|
options = {
|
||||||
|
|
||||||
local status_ok, illuminate = pcall(require, "illuminate")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
illuminate.configure {
|
|
||||||
-- providers: provider used to get references in the buffer, ordered by priority
|
-- providers: provider used to get references in the buffer, ordered by priority
|
||||||
providers = {
|
providers = {
|
||||||
"lsp",
|
"lsp",
|
||||||
|
@ -52,10 +45,18 @@ M.config = function()
|
||||||
providers_regex_syntax_allowlist = {},
|
providers_regex_syntax_allowlist = {},
|
||||||
-- under_cursor: whether or not to illuminate under the cursor
|
-- under_cursor: whether or not to illuminate under the cursor
|
||||||
under_cursor = true,
|
under_cursor = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
M.setup = function()
|
M.setup = function()
|
||||||
|
local status_ok, illuminate = pcall(require, "illuminate")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
illuminate.configure(lvim.builtin.illuminate.options)
|
||||||
|
|
||||||
if lvim.builtin.illuminate.on_config_done then
|
if lvim.builtin.illuminate.on_config_done then
|
||||||
lvim.builtin.illuminate.on_config_done()
|
lvim.builtin.illuminate.on_config_done()
|
||||||
end
|
end
|
||||||
|
|
|
@ -265,7 +265,7 @@ local core_plugins = {
|
||||||
config = function()
|
config = function()
|
||||||
require("lvim.core.illuminate").setup()
|
require("lvim.core.illuminate").setup()
|
||||||
end,
|
end,
|
||||||
-- disable = not lvim.builtin.illuminate.active,
|
disable = not lvim.builtin.illuminate.active,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lunarvim/onedarker.nvim",
|
"lunarvim/onedarker.nvim",
|
||||||
|
|
|
@ -395,7 +395,7 @@ function backup_old_config() {
|
||||||
function clone_lvim() {
|
function clone_lvim() {
|
||||||
msg "Cloning LunarVim configuration"
|
msg "Cloning LunarVim configuration"
|
||||||
if ! git clone --branch "$LV_BRANCH" \
|
if ! git clone --branch "$LV_BRANCH" \
|
||||||
--depth 1 "https://github.com/${LV_REMOTE}" "$LUNARVIM_BASE_DIR"; then
|
"https://github.com/${LV_REMOTE}" "$LUNARVIM_BASE_DIR"; then
|
||||||
echo "Failed to clone repository. Installation failed."
|
echo "Failed to clone repository. Installation failed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue