diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-02-14 00:57:05 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-02-14 00:57:05 +0100 |
commit | d9bc0bbc4c01f6ca8c6b27065d496e0926d3c90f (patch) | |
tree | 6effdfdf9b0ca91c0fb5079b1d11158c9ea8f278 /lua/no-clown-fiesta/groups/treesitter.lua | |
parent | 3e4b0088e0ecd494bc258b6f96d320e49d1cda30 (diff) |
Refactor
Diffstat (limited to 'lua/no-clown-fiesta/groups/treesitter.lua')
-rw-r--r-- | lua/no-clown-fiesta/groups/treesitter.lua | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lua/no-clown-fiesta/groups/treesitter.lua b/lua/no-clown-fiesta/groups/treesitter.lua index b7cee4a..dce369b 100644 --- a/lua/no-clown-fiesta/groups/treesitter.lua +++ b/lua/no-clown-fiesta/groups/treesitter.lua @@ -1,18 +1,16 @@ local M = {} -local unpack = unpack - -function M.highlight(palette, options) +function M.highlight(palette, opts) return { ["@comment"] = vim.tbl_extend( "force", { fg = palette.medium_gray }, - options.styles.comments + opts.styles.comments ), ["@annotation"] = { fg = palette.white }, ["@attribute"] = { fg = palette.white }, ["@constructor"] = { fg = palette.cyan }, - ["@type"] = vim.tbl_extend("force", { fg = palette.white }, options.styles.type), + ["@type"] = vim.tbl_extend("force", { fg = palette.white }, opts.styles.type), ["@type.builtin"] = { fg = palette.white }, ["@conditional"] = { fg = palette.gray_blue }, ["@exception"] = { fg = palette.red }, @@ -20,12 +18,12 @@ function M.highlight(palette, options) ["@keyword"] = vim.tbl_extend( "force", { fg = palette.gray_blue }, - options.styles.keywords + opts.styles.keywords ), ["@keyword.function"] = vim.tbl_extend( "force", { fg = palette.gray_blue }, - options.styles.keywords + opts.styles.keywords ), ["@label"] = { fg = palette.white }, ["@namespace"] = { fg = palette.white }, @@ -40,7 +38,7 @@ function M.highlight(palette, options) ["@function"] = vim.tbl_extend( "force", { fg = palette.cyan }, - options.styles.functions + opts.styles.functions ), ["@function.builtin"] = { fg = palette.cyan }, ["@method"] = { fg = palette.cyan }, @@ -49,7 +47,7 @@ function M.highlight(palette, options) ["@variable"] = vim.tbl_extend( "force", { fg = palette.white }, - options.styles.variables + opts.styles.variables ), ["@variable.builtin"] = { fg = palette.white }, ["@property"] = { fg = palette.white }, |