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