Unify the indentation

This commit is contained in:
He4eT 2022-07-12 04:21:48 +03:00
commit 9f211ec44f

View file

@ -21,8 +21,6 @@
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-- IN THE SOFTWARE.
vim.o.background = 'dark'
vim.g.monotone_h = 0
vim.g.monotone_s = 0
vim.g.monotone_l = 70
@ -42,9 +40,9 @@ local yellow2 = hsl("#ffd700")
local green = hsl("#4e9a06")
local white = hsl("#ffffff")
-- Config options
-- Config params
local opt = {
local params = {
contrast = (tonumber(vim.g.monotone_contrast) or 100) / 100,
base_color = hsl(
tonumber(vim.g.monotone_h) or 15,
@ -62,7 +60,7 @@ end
local offsets = { 50, 20, 10, 0, -10, -25, -45, -60, -70 }
for i, offset in pairs(offsets) do
colors[i] = shade(opt.base_color, opt.contrast, offset)
colors[i] = shade(params.base_color, params.contrast, offset)
end
colors.fg = hsl("#cdcdcd")
@ -232,57 +230,56 @@ return lush(function()
-- Treesitter
-- TSAnnotation({}); -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute({}); -- (unstable) TODO: docs
-- TSBoolean({}); -- For booleans.
-- TSCharacter({}); -- For characters.
-- TSComment({}); -- For comment blocks.
-- TSConstructor({}); -- For constructor calls and definitions: ` { }` in Lua, and Java constructors.
-- TSConditional({}); -- For keywords related to conditionnals.
-- TSAnnotation({}), -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute({}), -- (unstable) TODO: docs
-- TSBoolean({}), -- For booleans.
-- TSCharacter({}), -- For characters.
-- TSComment({}), -- For comment blocks.
-- TSConstructor({}), -- For constructor calls and definitions: ` { }` in Lua, and Java constructors.
-- TSConditional({}), -- For keywords related to conditionnals.
-- TSConstant({}), -- For constants
-- TSConstBuiltin({}); -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro({}); -- For constants that are defined by macros: `NULL` in C.
-- TSError({}); -- For syntax/parser errors.
-- TSException({}); -- For exception related keywords.
-- TSField({}); -- For fields.
-- TSFloat({}); -- For floats.
-- TSFunction({}); -- For function (calls and definitions).
-- TSFuncBuiltin({}); -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro({}); -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude({}); -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
-- TSKeyword({}); -- For keywords that don't fall in previous categories.
-- TSKeywordFunction({}); -- For keywords used to define a fuction.
-- TSLabel({}); -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod({}); -- For method calls and definitions.
-- TSNamespace({}); -- For identifiers referring to modules and namespaces.
-- TSNone({}); -- TODO: docs
-- TSNumber({}); -- For all numbers
-- TSOperator({}); -- For any operator: `+`, but also `->` and `*` in C.
-- TSParameter({}); -- For parameters of a function.
-- TSParameterReference({}); -- For references to parameters of a function.
-- TSConstBuiltin({}), -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro({}), -- For constants that are defined by macros: `NULL` in C.
-- TSError({}), -- For syntax/parser errors.
-- TSException({}), -- For exception related keywords.
-- TSField({}), -- For fields.
-- TSFloat({}), -- For floats.
-- TSFunction({}), -- For function (calls and definitions).
-- TSFuncBuiltin({}), -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro({}), -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude({}), -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
-- TSKeyword({}), -- For keywords that don't fall in previous categories.
-- TSKeywordFunction({}), -- For keywords used to define a fuction.
-- TSLabel({}), -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod({}), -- For method calls and definitions.
-- TSNamespace({}), -- For identifiers referring to modules and namespaces.
-- TSNone({}), -- TODO: docs
-- TSNumber({}), -- For all numbers
-- TSOperator({}), -- For any operator: `+`, but also `->` and `*` in C.
-- TSParameter({}), -- For parameters of a function.
-- TSParameterReference({}), -- For references to parameters of a function.
TSProperty({}), -- Same as `TSField`.
-- TSPunctDelimiter({}); -- For delimiters ie: `.`
-- TSPunctBracket({}); -- For brackets and parens.
-- TSPunctSpecial({}); -- For special punctutation that does not fall in the catagories before.
-- TSRepeat({}); -- For keywords related to loops.
-- TSString({}); -- For strings.
-- TSPunctDelimiter({}), -- For delimiters ie: `.`
-- TSPunctBracket({}), -- For brackets and parens.
-- TSPunctSpecial({}), -- For special punctutation that does not fall in the catagories before.
-- TSRepeat({}), -- For keywords related to loops.
-- TSString({}), -- For strings.
TSStringRegex({ fg = colors[1] }), -- For regexes.
TSStringEscape({ fg = colors.fg, gui = "bold" }), -- For escape characters within a string.
-- TSSymbol({}); -- For identifiers referring to symbols or atoms.
-- TSType({}); -- For types.
-- TSTypeBuiltin({}); -- For builtin types.
-- TSVariable({}); -- Any variable name that does not have another highlight.
-- TSVariableBuiltin({}); -- Variable names that are defined by the languages, like `this` or `self`.
-- TSTag({}); -- Tags like html tag names.
-- TSTagDelimiter({}); -- Tag delimiter like `<` `>` `/`
-- TSText({}); -- For strings considered text in a markup language.
-- TSEmphasis({}); -- For text to be represented with emphasis.
-- TSUnderline({}); -- For text to be represented with an underline.
-- TSStrike({}); -- For strikethrough text.
-- TSTitle({}); -- Text that is part of a title.
-- TSLiteral({}); -- Literal text.
-- TSURI({}); -- Any URI like a link or email.
-- TSSymbol({}), -- For identifiers referring to symbols or atoms.
-- TSType({}), -- For types.
-- TSTypeBuiltin({}), -- For builtin types.
-- TSVariable({}), -- Any variable name that does not have another highlight.
-- TSVariableBuiltin({}), -- Variable names that are defined by the languages, like `this` or `self`.
-- TSTag({}), -- Tags like html tag names.
-- TSTagDelimiter({}), -- Tag delimiter like `<` `>` `/`
-- TSText({}), -- For strings considered text in a markup language.
-- TSEmphasis({}), -- For text to be represented with emphasis.
-- TSUnderline({}), -- For text to be represented with an underline.
-- TSStrike({}), -- For strikethrough text.
-- TSTitle({}), -- Text that is part of a title.
-- TSLiteral({}), -- Literal text.
-- TSURI({}), -- Any URI like a link or email.
IndentBlankLineContextStart({ gui = "underline", sp = colors.nt }),
TreesitterContext({ fg = colors[3] }),