feat(config)!: LazyVim can now be configured like any other plugin with {"LazyVim/LazyVim", opts = ... }. config.settings is deprecated

This commit is contained in:
Folke Lemaitre 2023-01-10 10:07:19 +01:00
parent aafc033927
commit 36c84f47c9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
7 changed files with 113 additions and 57 deletions

View file

@ -1,54 +1,16 @@
---@class LazyVimSettings
local settings = {
icons = {
diagnostics = {
Error = "",
Warn = "",
Hint = "",
Info = "",
},
git = {
added = "",
modified = "",
removed = "",
},
kinds = {
Array = "",
Boolean = "",
Class = "",
Color = "",
Constant = "",
Constructor = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "",
Function = "",
Interface = "",
Key = "",
Keyword = "",
Method = "",
Module = "",
Namespace = "",
Null = "",
Number = "",
Object = "",
Operator = "",
Package = "",
Property = "",
Reference = "",
Snippet = "",
String = "",
Struct = "",
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "",
},
require("lazy.core.util").warn(
[[`config.settings` is deprecated.
Please configure LazyVim as a plugin:
```lua
{
"LazyVim/LazyVim",
opts = {
-- your config comes here
},
}
return settings
```
]],
{ title = "LazyVim" }
)
return require("lazyvim.config")