Catppuccinのこのポートは、プロジェクト自体を生み出した最初の港であり、特別なものです。これを考えると、それがすべてが今どこからともなくなっているものにならなかったことを認めることが重要です。したがって、テーマの初期段階について詳しく知りたい場合は、v0.1タグの下で見つけることができます。
あなた自身の味を焼きます!コミュニティの構成は次のとおりです。 (背景ソース)
lazy.nvim
{ " catppuccin/nvim " , name = " catppuccin " , priority = 1000 }
mini.deps
add ({ source = " catppuccin/nvim " , name = " catppuccin " })
packer.nvim
use { " catppuccin/nvim " , as = " catppuccin " }
vim-plug
Plug ' catppuccin/nvim ' , { ' as ' : ' catppuccin ' }
colorscheme catppuccin " catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
vim . cmd . colorscheme " catppuccin "
デフォルトのオプションと設定を変更したくない場合、 setup
呼び出す必要はありません。
require ( " catppuccin " ). setup ({
flavour = " auto " , -- latte, frappe, macchiato, mocha
background = { -- :h background
light = " latte " ,
dark = " mocha " ,
},
transparent_background = false , -- disables setting the background color.
show_end_of_buffer = false , -- shows the '~' characters after the end of buffers
term_colors = false , -- sets terminal colors (e.g. `g:terminal_color_0`)
dim_inactive = {
enabled = false , -- dims the background color of inactive window
shade = " dark " ,
percentage = 0.15 , -- percentage of the shade to apply to the inactive window
},
no_italic = false , -- Force no italic
no_bold = false , -- Force no bold
no_underline = false , -- Force no underline
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
comments = { " italic " }, -- Change the style of comments
conditionals = { " italic " },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
-- miscs = {}, -- Uncomment to turn off hard-coded styles
},
color_overrides = {},
custom_highlights = {},
default_integrations = true ,
integrations = {
cmp = true ,
gitsigns = true ,
nvimtree = true ,
treesitter = true ,
notify = false ,
mini = {
enabled = true ,
indentscope_color = " " ,
},
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})
-- setup must be called before loading
vim . cmd . colorscheme " catppuccin "
local latte = require ( " catppuccin.palettes " ). get_palette " latte "
local frappe = require ( " catppuccin.palettes " ). get_palette " frappe "
local macchiato = require ( " catppuccin.palettes " ). get_palette " macchiato "
local mocha = require ( " catppuccin.palettes " ). get_palette " mocha "
キーが色の名前であり、値は各フレーバーに対応する六角値であるテーブルを返します。
設定でcolor_overrides
使用して色を上書きすることができます。インスピレーションについてはチェックアウト#323:
require ( " catppuccin " ). setup {
color_overrides = {
all = {
text = " #ffffff " ,
},
latte = {
base = " #ff0000 " ,
mantle = " #242424 " ,
crust = " #474747 " ,
},
frappe = {},
macchiato = {},
mocha = {},
}
}
注記
詳細については、スタイルガイドをご覧ください
たとえば、グローバルハイライトグループは、設定で上書きすることができます。
require ( " catppuccin " ). setup {
custom_highlights = function ( colors )
return {
Comment = { fg = colors . flamingo },
TabLineSel = { bg = colors . pink },
CmpBorder = { fg = colors . surface2 },
Pmenu = { bg = colors . none },
}
end
}
フレーバーあたりのハイライトグループは、設定で上書きすることもできます。
require ( " catppuccin " ). setup {
highlight_overrides = {
all = function ( colors )
return {
NvimTreeNormal = { fg = colors . none },
CmpBorder = { fg = " #3e4145 " },
}
end ,
latte = function ( latte )
return {
Normal = { fg = latte . base },
}
end ,
frappe = function ( frappe )
return {
[ " @comment " ] = { fg = frappe . surface2 , style = { " italic " } },
}
end ,
macchiato = function ( macchiato )
return {
LineNr = { fg = macchiato . overlay1 },
}
end ,
mocha = function ( mocha )
return {
Comment = { fg = mocha . flamingo },
}
end ,
},
}
Catppuccinは、NeoVIMエコシステムの他のプラグインのテーマサポートと、統合を通じてNeoVIM機能を拡張することを提供します。
統合を有効/無効にするには、それをTrue/falseに設定するだけです。たとえば、:
require ( " catppuccin " ). setup ({
integrations = {
cmp = true ,
gitsigns = true ,
nvimtree = true ,
treesitter = true ,
notify = false ,
mini = {
enabled = true ,
indentscope_color = " " ,
},
}
})
いくつかの統合はデフォルトで有効になっています。この動作をdefault_integrations
オプションで制御できます。
require ( " catppuccin " ). setup ({
default_integrations = false ,
})
以下は、サポートされているプラグインとそれに対応する統合モジュールのリストです。
重要
Catppuccinの影響を受けているハイライトグループを知りたい場合は、このディレクトリ: lua/catppuccin/groups/integrations/
をご覧ください。
プラグイン | デフォルト |
aerial.nvim | aerial = false |
Alpha-nvim | alpha = true |
barbar.nvim | barbar = false |
barbecue.nvim | barbecue = {
dim_dirname = true , -- directory name is dimmed by default
bold_basename = true ,
dim_context = false ,
alt_background = false ,
}, 特別これを使用してセットアップします。 require ( " barbecue " ). setup {
theme = " catppuccin " , -- catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
} |
beacon.nvim | beacon = false |
blink.cmp | blink_cmp = false |
bufferline.nvim | 特別catppuccinコンポーネントを使用するには、bufferline構成を更新します。
use " akinsho/bufferline.nvim " {
after = " catppuccin " ,
config = function ()
require ( " bufferline " ). setup {
highlights = require ( " catppuccin.groups.integrations.bufferline " ). get ()
}
end
} 構成は自明です。詳細な説明については、 local mocha = require ( " catppuccin.palettes " ). get_palette " mocha "
bufferline . setup {
highlights = require ( " catppuccin.groups.integrations.bufferline " ). get {
styles = { " italic " , " bold " },
custom = {
all = {
fill = { bg = " #000000 " },
},
mocha = {
background = { fg = mocha . text },
},
latte = {
background = { fg = " #000000 " },
},
},
},
} |
coc.nvim | coc_nvim = false 特別
coc_nvim = true ,
Innersテーブルでは、 native_lsp = {
enabled = true ,
virtual_text = {
errors = { " italic " },
hints = { " italic " },
warnings = { " italic " },
information = { " italic " },
ok = { " italic " },
},
underlines = {
errors = { " underline " },
hints = { " underline " },
warnings = { " underline " },
information = { " underline " },
ok = { " underline " },
},
inlay_hints = {
background = true ,
},
}, |
カラフルなウィンセップ | colorful_winsep = {
enabled = false ,
color = " red " ,
} |
ダッシュボードnvim | dashboard = true |
diffview.nvim | diffview = false |
dropbar.nvim | dropbar = {
enabled = false ,
color_mode = false , -- enable color for kind's texts, not just kind's icons
}, |
ネコ | 特別ネコの構成を更新して、catppuccinコンポーネントを使用します。 local ctp_feline = require ( ' catppuccin.groups.integrations.feline ' )
ctp_feline . setup ()
require ( " feline " ). setup ({
components = ctp_feline . get (),
}) デフォルトは次のとおりです。 local clrs = require ( " catppuccin.palettes " ). get_palette ()
local ctp_feline = require ( ' catppuccin.groups.integrations.feline ' )
local U = require " catppuccin.utils.colors "
ctp_feline . setup ({
assets = {
left_separator = " " ,
right_separator = " " ,
mode_icon = " " ,
dir = " ? " ,
file = " ? " ,
lsp = {
server = " ? " ,
error = " " ,
warning = " " ,
info = " " ,
hint = " " ,
},
git = {
branch = " " ,
added = " " ,
changed = " " ,
removed = " " ,
},
},
sett = {
text = U . vary_color ({ latte = latte . base }, clrs . surface0 ),
bkg = U . vary_color ({ latte = latte . crust }, clrs . surface0 ),
diffs = clrs . mauve ,
extras = clrs . overlay1 ,
curr_file = clrs . maroon ,
curr_dir = clrs . flamingo ,
show_modified = false -- show if the file has been modified
show_lazy_updates = false -- show the count of updatable plugins from lazy.nvim
-- need to set checker.enabled = true in lazy.nvim first
-- the icon is set in ui.icons.plugin in lazy.nvim
},
mode_colors = {
[ " n " ] = { " NORMAL " , clrs . lavender },
[ " no " ] = { " N-PENDING " , clrs . lavender },
[ " i " ] = { " INSERT " , clrs . green },
[ " ic " ] = { " INSERT " , clrs . green },
[ " t " ] = { " TERMINAL " , clrs . green },
[ " v " ] = { " VISUAL " , clrs . flamingo },
[ " V " ] = { " V-LINE " , clrs . flamingo },
[ " � " ] = { " V-BLOCK " , clrs . flamingo },
[ " R " ] = { " REPLACE " , clrs . maroon },
[ " Rv " ] = { " V-REPLACE " , clrs . maroon },
[ " s " ] = { " SELECT " , clrs . maroon },
[ " S " ] = { " S-LINE " , clrs . maroon },
[ " � " ] = { " S-BLOCK " , clrs . maroon },
[ " c " ] = { " COMMAND " , clrs . peach },
[ " cv " ] = { " COMMAND " , clrs . peach },
[ " ce " ] = { " COMMAND " , clrs . peach },
[ " r " ] = { " PROMPT " , clrs . teal },
[ " rm " ] = { " MORE " , clrs . teal },
[ " r? " ] = { " CONFIRM " , clrs . mauve },
[ " ! " ] = { " SHELL " , clrs . green },
},
view = {
lsp = {
progress = true , -- if true the status bar will display an lsp progress indicator
name = false , -- if true the status bar will display the lsp servers name, otherwise it will display the text "Lsp"
exclude_lsp_names = {}, -- lsp server names that should not be displayed when name is set to true
separator = " | " , -- the separator used when there are multiple lsp servers
},
}
})
vim . api . nvim_create_autocmd ( " ColorScheme " , {
pattern = " * " ,
callback = function ()
package.loaded [ " feline " ] = nil
package.loaded [ " catppuccin.groups.integrations.feline " ] = nil
require ( " feline " ). setup {
components = require ( " catppuccin.groups.integrations.feline " ). get (),
}
end ,
}) |
fern.vim | fern = false |
fidget.nvim | fidget = false 特別`notification.window.winblend`を` 0`に設定します。 require ( " fidget " ). setup {
notification = {
window = {
winblend = 0 ,
},
}
-- ... the rest of your fidget config
} |
flash.nvim | flash = true |
FZF-LUA | fzf = true |
gitsigns.nvim | gitsigns = true |
grug-far.nvim | grug_far = false |
銛 | harpoon = false |
headlines.nvim | headlines = false |
hop.nvim | hop = false |
indent-blankline.nvim | indent_blankline = {
enabled = true ,
scope_color = " " , -- catppuccin color (eg. `lavender`) Default: text
colored_indent_levels = false ,
},
特別
|
Leap.nvim | leap = false |
lightline.vim | 特別 let g: lightline = { ' colorscheme ' : ' catppuccin ' } |
lightspeed.nvim | lightspeed = false |
lir.nvim | lir = {
enabled = false ,
git_status = false
} |
lspsaga.nvim | lsp_saga = false 特別カスタムLSPの種類のアイコンと色の場合 require ( " lspsaga " ). setup {
ui = {
kind = require ( " catppuccin.groups.integrations.lsp_saga " ). custom_kind (),
},
} |
lualine.nvim | 特別 require ( ' lualine ' ). setup {
options = {
theme = " catppuccin "
-- ... the rest of your lualine config
}
} |
マークダウン | markdown = true |
Mason.nvim | mason = false |
mini.nvim | mini = {
enabled = true ,
indentscope_color = " " , -- catppuccin color (eg. `lavender`) Default: text
}, |
Neo-Tree.nvim | neotree = true |
Neogit | neogit = true |
Neotest | neotest = false |
noice.nvim | noice = false |
normalnvim | NormalNvim = false |
Notifier.nvim | notifier = false |
NVIM-CMP | cmp = true |
NVIM-DAP | dap = true 特別 local sign = vim . fn . sign_define
sign ( " DapBreakpoint " , { text = " ● " , texthl = " DapBreakpoint " , linehl = " " , numhl = " " })
sign ( " DapBreakpointCondition " , { text = " ● " , texthl = " DapBreakpointCondition " , linehl = " " , numhl = " " })
sign ( " DapLogPoint " , { text = " ◆ " , texthl = " DapLogPoint " , linehl = " " , numhl = " " }) |
nvim-dap-ui | dap_ui = true |
nvim-lspconfig | native_lsp = {
enabled = true ,
virtual_text = {
errors = { " italic " },
hints = { " italic " },
warnings = { " italic " },
information = { " italic " },
ok = { " italic " },
},
underlines = {
errors = { " underline " },
hints = { " underline " },
warnings = { " underline " },
information = { " underline " },
ok = { " underline " },
},
inlay_hints = {
background = true ,
},
}, 特別Innersテーブルでは、 |
ナビック | navic = {
enabled = false ,
custom_bg = " NONE " , -- "lualine" will set background to mantle
},
特別 -- You NEED to enable highlight in nvim-navic setting or it won't work
require ( " nvim-navic " ). setup {
highlight = true
} |
nvim-notify | notify = false |
nvim-semantic-tokens | semantic_tokens = true |
nvim-surround | nvim_surround = false |
nvim-tree.lua | nvimtree = true |
nvim-treesitter-context | treesitter_context = true |
nvim-treesitter | treesitter = true |
nvim-ts-rainbow2 | ts_rainbow2 = false |
nvim-ts-rainbow | ts_rainbow = false |
nvim-ufo | ufo = true |
nvim-window-picker | window_picker = false |
Octo.nvim | octo = false |
overseer.nvim | overseer = false |
pounce.nvim | pounce = false |
Rainbow-Delimiters.nvim | rainbow_delimiters = true |
racive.nvim | 特別すべてのフレーバーに2つの利用可能なプリセット( これらを使用する方法は次のとおりです。 require ( ' reactive ' ). setup {
load = { ' catppuccin-mocha-cursor ' , ' catppuccin-mocha-cursorline ' }
} 別のフレーバーを使用するには、 |
render-markdown.nvim | render_markdown = true |
Symbols-outline.nvim | 注記 このプラグインは著者によってアーカイブされています。Authline.nvimを使用することを検討してください symbols_outline = false |
Telekasten.nvim | telekasten = false |
Telescope.nvim | telescope = {
enabled = true ,
-- style = "nvchad"
} |
Trouble.nvim | lsp_trouble = false |
Vim-Airline | 特別 let g: airline_theme = ' catppuccin ' |
Vim-Clap | 特別これを使用してセットアップします。 let g: clap_theme = ' catppuccin ' |
vim-dadbod-ui | dadbod_ui = false |
vim-gitgutter | gitgutter = false |
Vim-Illuminate | illuminate = {
enabled = true ,
lsp = false
} |
vim-sandwich | sandwich = false |
vim-sneak | vim_sneak = false |
ヴィムウィキ | vimwiki = false |
whithykey.nvim | which_key = false |
7/10/2022の時点で、Catppuccinはセットアップテーブルが変更されたときに自動的に再コンパイルできるはずです。
Catppuccinは、高度にカスタマイズ可能で構成可能なColorschemeです。ただし、これは複雑さと実行時間を犠牲にして行われます。 Catppuccinは、構成の結果を事前に計算し、コンパイルされたLUAファイルに結果を保存できます。これらの事前の値を使用して、ハイライトを設定します。
デフォルトでは、Catppuccinはコンパイルされた結果をシステムのキャッシュディレクトリに書き込みます。次を使用してキャッシュdirを変更できます。
require ( " catppuccin " ). setup ({ -- Note: On windows we replace `/` with `` by default
compile_path = vim . fn . stdpath " cache " .. " /catppuccin "
})
additional_vim_regex_highlighting
無効にしてください
require ( " nvim-treesitter.configs " ). setup {
highlight = {
enable = true ,
additional_vim_regex_highlighting = false
},
}
catppuccinには真の色のサポートが必要である別名ターミナルは1600万色の全範囲をサポートしています
サポート端末の完全なリストは、https://github.com/termstandard/colors#truecolor-support-inutput-devicesにあります。
サポートされていない端子の完全なリストは、https://github.com/termstandard/colors#not-supporting-truecolorにあります。
Copyright©2021-PresentCatppuccin org