refactor(setting): enable -> enabled for consistency

dev
nullchilly 2 years ago
parent 0963bb5635
commit ac25d91763

@ -88,7 +88,7 @@ dim_inactive = false,
transparent_background = false,
term_colors = false,
compile = {
enable = false,
enabled = false,
path = vim.fn.stdpath "cache" .. "/catppuccin",
suffix = "_compiled"
},
@ -299,11 +299,11 @@ Catppuccin is a highly customizable and configurable colorscheme. This does howe
Catppuccin can pre compute the results of your configuration and store the results in a compiled lua file. We use these precached values to set it's highlights.
- To enable compile enables it in setup function:
- Setting `enabled` to `true` enables this feature:
```lua
compile = {
enable = true,
enabled = true,
path = vim.fn.stdpath "cache" .. "/catppuccin",
suffix = "_compiled"
},

@ -5,12 +5,12 @@ config.options = {
transparent_background = false,
term_colors = false,
compile = {
enable = false,
enabled = false,
path = vim.fn.stdpath("cache") .. "/catppuccin",
suffix = "_compiled",
},
dim_inactive = {
enable = false,
enabled = false,
shade = "dark",
percentage = 0.15,
},

@ -37,8 +37,8 @@ function M.get()
Normal = { fg = cp.text, bg = cnf.transparent_background and cp.none or cp.base }, -- normal text
NormalNC = {
fg = cp.text,
bg = (cnf.transparent_background and cnf.dim_inactive.enable and lui.dim())
or (cnf.dim_inactive.enable and cp.dim)
bg = (cnf.transparent_background and cnf.dim_inactive.enabled and lui.dim())
or (cnf.dim_inactive.enabled and cp.dim)
or (cnf.transparent_background and cp.none)
or cp.base,
}, -- normal text in non-current windows

@ -3,9 +3,9 @@ local M = {}
function M.get()
local cnf = require("catppuccin.config").options
local transparent_background = cnf.transparent_background
local bg_highlight = (transparent_background and cnf.dim_inactive.enable and cp.dim)
local bg_highlight = (transparent_background and cnf.dim_inactive.enabled and cp.dim)
or (transparent_background and "NONE")
or (cnf.dim_inactive.enable and cp.dim)
or (cnf.dim_inactive.enabled and cp.dim)
or cp.base
local inactive_bg = transparent_background and "NONE" or cp.mantle

@ -2,9 +2,9 @@ local M = {}
function M.get()
local cnf = require("catppuccin.config").options
local bg_highlight = (cnf.transparent_background and cnf.dim_inactive.enable and cp.dim)
local bg_highlight = (cnf.transparent_background and cnf.dim_inactive.enabled and cp.dim)
or (cnf.transparent_background and "NONE")
or (cnf.dim_inactive.enable and cp.dim)
or (cnf.dim_inactive.enabled and cp.dim)
or cp.base
return {
GitSignsAdd = { fg = cp.green, bg = bg_highlight }, -- diff mode: Added line |diff.txt|

@ -3,9 +3,9 @@ local M = {}
function M.get()
local cnf = require("catppuccin.config").options
local transparent_background = cnf.transparent_background
local bg_highlight = (transparent_background and cnf.dim_inactive.enable and cp.dim)
local bg_highlight = (transparent_background and cnf.dim_inactive.enabled and cp.dim)
or (transparent_background and "NONE")
or (cnf.dim_inactive.enable and cp.dim)
or (cnf.dim_inactive.enabled and cp.dim)
or cp.base
return {
rainbowcol1 = { bg = bg_highlight, fg = cp.red },

@ -38,7 +38,7 @@ function M.load()
local loaded = nil
local config = require("catppuccin.config").options
if config.compile.enable == true then
if config.compile.enabled == true then
local compiled_path = config.compile.path
.. (vim.loop.os_uname().sysname == "Windows" and "\\" or "/")
.. vim.g.catppuccin_flavour

Loading…
Cancel
Save