mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
New version: created v3
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
local M = {}
|
||||
|
||||
local user_settings = astronvim.user_plugin_opts "default_theme"
|
||||
|
||||
function M.parse_diagnostic_style(default)
|
||||
if type(user_settings.diagnostics_style) == "table" then
|
||||
default = vim.tbl_deep_extend("force", user_settings.diagnostics_style, default)
|
||||
elseif type(user_settings.diagnostics_style) == "string" then
|
||||
default.style = user_settings.diagnostics_style
|
||||
end
|
||||
return default
|
||||
end
|
||||
|
||||
function M.parse_style(spec)
|
||||
if spec.style then
|
||||
for match in (spec.style .. ","):gmatch "(.-)," do
|
||||
spec[match] = true
|
||||
end
|
||||
spec.style = nil
|
||||
end
|
||||
return spec
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user