feat: add builtin style configuration
style: format
This commit is contained in:
parent
04753e6b08
commit
f55494a73d
@ -1,38 +1,39 @@
|
|||||||
local config = {}
|
local config = {}
|
||||||
|
|
||||||
local defaults = {
|
local defaults = {
|
||||||
theme = nil, -- "dark" or "light". Alternatively, remove the option and set vim.o.background instead
|
theme = nil, -- "dark" or "light". Alternatively, remove the option and set vim.o.background instead
|
||||||
borders = true, -- Split window borders
|
borders = true, -- Split window borders
|
||||||
fade_nc = false, -- Fade non-current windows, making them more distinguishable
|
fade_nc = false, -- Fade non-current windows, making them more distinguishable
|
||||||
-- Style that is applied to various groups: see `highlight-args` for options
|
-- Style that is applied to various groups: see `highlight-args` for options
|
||||||
styles = {
|
styles = {
|
||||||
comments = 'NONE',
|
comments = 'NONE',
|
||||||
strings = 'NONE',
|
strings = 'NONE',
|
||||||
keywords = 'NONE',
|
keywords = 'NONE',
|
||||||
functions = 'NONE',
|
functions = 'NONE',
|
||||||
variables = 'NONE',
|
variables = 'NONE',
|
||||||
diagnostics = 'underline',
|
diagnostics = 'underline',
|
||||||
storage_class = 'NONE',
|
storage_class = 'NONE',
|
||||||
structure = 'NONE',
|
structure = 'NONE',
|
||||||
loop_cond = 'NONE',
|
loop_cond = 'NONE',
|
||||||
},
|
builtin = 'NONE',
|
||||||
disable = {
|
},
|
||||||
background = false, -- Disable setting the background color
|
disable = {
|
||||||
cursorline = false, -- Disable the cursorline
|
background = false, -- Disable setting the background color
|
||||||
eob_lines = true, -- Hide the end-of-buffer lines
|
cursorline = false, -- Disable the cursorline
|
||||||
},
|
eob_lines = true, -- Hide the end-of-buffer lines
|
||||||
-- Inverse highlight for different groups
|
},
|
||||||
inverse = {
|
-- Inverse highlight for different groups
|
||||||
match_paren = false,
|
inverse = {
|
||||||
},
|
match_paren = false,
|
||||||
custom_highlights = {}, -- Overwrite default highlight groups
|
},
|
||||||
custom_colors = {}, -- Overwrite default colors
|
custom_highlights = {}, -- Overwrite default highlight groups
|
||||||
|
custom_colors = {}, -- Overwrite default colors
|
||||||
}
|
}
|
||||||
|
|
||||||
config.options = {}
|
config.options = {}
|
||||||
|
|
||||||
function config.set_options(opts)
|
function config.set_options(opts)
|
||||||
config.options = vim.tbl_deep_extend('force', config.options, opts or {})
|
config.options = vim.tbl_deep_extend('force', config.options, opts or {})
|
||||||
end
|
end
|
||||||
|
|
||||||
config.set_options(defaults)
|
config.set_options(defaults)
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user