From 6e14457e2c9697117f5a03c6550616a7d8b23400 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 21 Jul 2022 22:02:18 +0200 Subject: Add bold type as config --- README.md | 1 + lua/no-clown-fiesta/Treesitter.lua | 2 +- lua/no-clown-fiesta/config.lua | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 70991e0..b169346 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,4 @@ These are all the available variables and their default values. | italic_keywords | false | | italic_functions | false | | italic_variables | false | +| bold_type | false | diff --git a/lua/no-clown-fiesta/Treesitter.lua b/lua/no-clown-fiesta/Treesitter.lua index 54c2f61..0747063 100644 --- a/lua/no-clown-fiesta/Treesitter.lua +++ b/lua/no-clown-fiesta/Treesitter.lua @@ -3,7 +3,7 @@ local Treesitter = { TSAnnotation = { fg = C.white }, TSAttribute = { fg = C.white }, TSConstructor = { fg = C.white }, - TSType = { fg = C.white, style = "bold" }, + TSType = { fg = C.white, style = Config.bold_type }, TSTypeBuiltin = { fg = C.white }, TSConditional = { fg = C.gray_blue }, TSException = { fg = C.red }, diff --git a/lua/no-clown-fiesta/config.lua b/lua/no-clown-fiesta/config.lua index 21d030f..3f51bce 100644 --- a/lua/no-clown-fiesta/config.lua +++ b/lua/no-clown-fiesta/config.lua @@ -18,6 +18,7 @@ config = { italic_keywords = opt("italic_keywords", false) and "italic" or "NONE", italic_functions = opt("italic_functions", false) and "italic" or "NONE", italic_variables = opt("italic_variables", false) and "italic" or "NONE", + bold_type = opt("bold_type", false) and "bold" or "NONE", } return config -- cgit v1.2.3-70-g09d2