From 45a24037e4675e0a0a4f8e2f388ebd82ef25d603 Mon Sep 17 00:00:00 2001 From: mvllow Date: Mon, 12 Jul 2021 22:57:42 -0500 Subject: [PATCH] format --- lua/rose-pine/functions.lua | 4 +++- lua/rose-pine/theme.lua | 20 ++++++++++++++++---- lua/rose-pine/util.lua | 11 ++++++++++- stylua.toml | 4 +++- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/lua/rose-pine/functions.lua b/lua/rose-pine/functions.lua index ac27c7d..1e20594 100644 --- a/lua/rose-pine/functions.lua +++ b/lua/rose-pine/functions.lua @@ -22,7 +22,9 @@ local toggle_variant = function(variants) vim.g.rose_pine_variant_switch = index[vim.g.rose_pine_variant] or 0 end - vim.g.rose_pine_variant_switch = (vim.g.rose_pine_variant_switch % table.getn(options)) + 1 + vim.g.rose_pine_variant_switch = ( + vim.g.rose_pine_variant_switch % table.getn(options) + ) + 1 select_variant(options[vim.g.rose_pine_variant_switch]) end diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index 56c2e98..179cc45 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -144,7 +144,10 @@ theme.loadTreesitter = function() -- TSAttribute = {}, TSBoolean = { fg = p.rose }, -- TSCharacter = {}, - TSComment = { fg = p.subtle, style = vim.g.rose_pine_enable_italics and 'italic' }, + TSComment = { + fg = p.subtle, + style = vim.g.rose_pine_enable_italics and 'italic', + }, -- TSConditional = {}, TSConstBuiltin = { fg = p.love }, -- TSConstMacro = {}, @@ -169,9 +172,15 @@ theme.loadTreesitter = function() -- TSNone = {}, -- TSNumber = {}, TSOperator = { fg = p.pine }, - TSParameter = { fg = p.iris, style = vim.g.rose_pine_enable_italics and 'italic' }, + TSParameter = { + fg = p.iris, + style = vim.g.rose_pine_enable_italics and 'italic', + }, -- TSParameterReference = {}, - TSProperty = { fg = p.iris, style = vim.g.rose_pine_enable_italics and 'italic' }, + TSProperty = { + fg = p.iris, + style = vim.g.rose_pine_enable_italics and 'italic', + }, TSPunctBracket = { fg = p.subtle }, TSPunctDelimiter = { fg = p.subtle }, TSPunctSpecial = { fg = p.subtle }, @@ -189,7 +198,10 @@ theme.loadTreesitter = function() -- TSTypeBuiltin = {}, TSURI = { fg = p.gold, style = 'underline' }, -- TSUnderline = {}, - TSVariable = { fg = p.text, style = vim.g.rose_pine_enable_italics and 'italic' }, + TSVariable = { + fg = p.text, + style = vim.g.rose_pine_enable_italics and 'italic', + }, TSVariableBuiltin = { fg = p.love }, } diff --git a/lua/rose-pine/util.lua b/lua/rose-pine/util.lua index b897fd0..9121229 100644 --- a/lua/rose-pine/util.lua +++ b/lua/rose-pine/util.lua @@ -7,7 +7,16 @@ util.highlight = function(group, color) local bg = color.bg and 'guibg=' .. color.bg or 'guibg=NONE' local sp = color.sp and 'guisp=' .. color.sp or '' - local hl = 'highlight ' .. group .. ' ' .. style .. ' ' .. fg .. ' ' .. bg .. ' ' .. sp + local hl = 'highlight ' + .. group + .. ' ' + .. style + .. ' ' + .. fg + .. ' ' + .. bg + .. ' ' + .. sp vim.cmd(hl) if color.link then diff --git a/stylua.toml b/stylua.toml index 049d097..85d575e 100644 --- a/stylua.toml +++ b/stylua.toml @@ -1 +1,3 @@ -quote_style = 'AutoPreferSingle' +column_width = 80 +indent_type = "Tabs" +quote_style = "AutoPreferSingle"