mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 18:59:00 +02:00
refactor: LazyVim.config
This commit is contained in:
parent
57ef349910
commit
05e45e0d35
15 changed files with 32 additions and 42 deletions
|
@ -1,12 +1,10 @@
|
|||
local Config = require("lazyvim.config")
|
||||
|
||||
return {
|
||||
desc = "Aerial Symbol Browser",
|
||||
{
|
||||
"stevearc/aerial.nvim",
|
||||
event = "LazyFile",
|
||||
opts = function()
|
||||
local icons = vim.deepcopy(Config.icons.kinds)
|
||||
local icons = vim.deepcopy(LazyVim.config.icons.kinds)
|
||||
|
||||
-- HACK: fix lua's weird choice for `Package` for control
|
||||
-- structures like if/else/for/etc.
|
||||
|
@ -14,8 +12,8 @@ return {
|
|||
|
||||
---@type table<string, string[]>|false
|
||||
local filter_kind = false
|
||||
if Config.kind_filter then
|
||||
filter_kind = assert(vim.deepcopy(Config.kind_filter))
|
||||
if LazyVim.config.kind_filter then
|
||||
filter_kind = assert(vim.deepcopy(LazyVim.config.kind_filter))
|
||||
filter_kind._ = filter_kind.default
|
||||
filter_kind.default = nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue