catppuccin-nvim-v0

所属分类:hotest
开发工具:Lua
文件大小:0KB
下载次数:0
上传日期:2022-05-31 16:39:13
上 传 者sh-1993
说明:  Neovim的原始Catppuccin主题福克(v0.1)
(Fork of the Original Catppuccin theme for Neovim (v0.1))

文件列表:
.editorconfig (374, 2022-05-31)
CONTRIBUTING.md (1292, 2022-05-31)
LICENSE.md (1067, 2022-05-31)
assets/ (0, 2022-05-31)
assets/ss.png (153778, 2022-05-31)
autoload/ (0, 2022-05-31)
autoload/lightline/ (0, 2022-05-31)
autoload/lightline/colorscheme/ (0, 2022-05-31)
autoload/lightline/colorscheme/catppuccin.vim (141, 2022-05-31)
colors/ (0, 2022-05-31)
colors/catppuccin.vim (44, 2022-05-31)
lua/ (0, 2022-05-31)
lua/catppuccin/ (0, 2022-05-31)
lua/catppuccin/api/ (0, 2022-05-31)
lua/catppuccin/api/colors.lua (101, 2022-05-31)
lua/catppuccin/config.lua (1383, 2022-05-31)
lua/catppuccin/core/ (0, 2022-05-31)
lua/catppuccin/core/color_palette.lua (706, 2022-05-31)
lua/catppuccin/core/integrations/ (0, 2022-05-31)
lua/catppuccin/core/integrations/barbar.lua (1011, 2022-05-31)
lua/catppuccin/core/integrations/bufferline.lua (1048, 2022-05-31)
lua/catppuccin/core/integrations/cmp.lua (1402, 2022-05-31)
lua/catppuccin/core/integrations/dashboard.lua (235, 2022-05-31)
lua/catppuccin/core/integrations/feline.lua (8729, 2022-05-31)
lua/catppuccin/core/integrations/fern.lua (97, 2022-05-31)
lua/catppuccin/core/integrations/gitgutter.lua (172, 2022-05-31)
lua/catppuccin/core/integrations/gitsigns.lua (456, 2022-05-31)
lua/catppuccin/core/integrations/hop.lua (327, 2022-05-31)
lua/catppuccin/core/integrations/indent_blankline.lua (658, 2022-05-31)
lua/catppuccin/core/integrations/lightspeed.lua (1559, 2022-05-31)
lua/catppuccin/core/integrations/lsp_saga.lua (902, 2022-05-31)
lua/catppuccin/core/integrations/lsp_trouble.lua (208, 2022-05-31)
lua/catppuccin/core/integrations/markdown.lua (473, 2022-05-31)
lua/catppuccin/core/integrations/native_lsp.lua (4065, 2022-05-31)
lua/catppuccin/core/integrations/neogit.lua (439, 2022-05-31)
lua/catppuccin/core/integrations/neotree.lua (709, 2022-05-31)
lua/catppuccin/core/integrations/notify.lua (750, 2022-05-31)
lua/catppuccin/core/integrations/nvimtree.lua (1037, 2022-05-31)
... ...

Logo
Catppuccin for NeoVim

# About This port of Catppuccin is special because it was the first one and the one that originated the project itself. Given this, it's important to acknowledge that it all didn't come to be what it is now out of nowhere. So, if you are interested in knowing more about the initial stages of the theme, you can find it under the [`old-catppuccino`](https://github.com/catppuccin/nvim/tree/old-catppuccino) branch. # Features - Handy CLI. - Extensible for many use cases. - Integrations with a bunch of plugins: - [Treesitter](https://github.com/tree-sitter/tree-sitter) - [Native LSP](https://github.com/neovim/nvim-lspconfig) - [Telescope](https://github.com/nvim-telescope/telescope.nvim) - [Feline](https://github.com/feline-nvim/feline.nvim) - [Lualine](https://github.com/hoob3rt/lualine.nvim) - [Nvim-cmp](https://github.com/hrsh7th/nvim-cmp) - [LSP Saga](https://github.com/glepnir/lspsaga.nvim) - [Git signs](https://github.com/lewis6991/gitsigns.nvim) - [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim) - [Trouble](https://github.com/folke/trouble.nvim) - [WhichKey](https://github.com/folke/which-key.nvim) - [BarBar](https://github.com/romgrk/barbar.nvim) - [NvimTree](https://github.com/kyazdani42/nvim-tree.lua) - [Neo-tree](https://github.com/nvim-neo-tree/neo-tree.nvim) - [Git Gutter](https://github.com/airblade/vim-gitgutter) - [Fern](https://github.com/lambdalisue/fern.vim) - [Lightline](https://github.com/itchyny/lightline.vim) - [Dashboard](https://github.com/glepnir/dashboard-nvim) - [Markdown](https://www.markdownguide.org/) - [Lightspeed](https://github.com/ggandor/lightspeed.nvim) - [Nvim-ts-Rainbow](https://github.com/p00f/nvim-ts-rainbow) - [Sneak](https://github.com/justinmk/vim-sneak) - [Hop](https://github.com/phaazon/hop.nvim) - [Neogit](https://github.com/TimUntersberger/neogit) - [Telekasten](https://github.com/renerocksai/telekasten.nvim) - [Notify](https://github.com/rcarriga/nvim-notify) - [Symbols-Outline](https://github.com/simrat39/symbols-outline.nvim) ## Usage You can use your favorite plugin manager for this. Here are some examples with the most popular ones: #### Vim-plug ```lua Plug 'catppuccin/nvim', {'as': 'catppuccin'} ``` #### Packer.nvim ```lua use({ "catppuccin/nvim", as = "catppuccin" }) ``` #### Vundle ```lua Plugin 'catppuccin/nvim', {'name': 'catppuccin'} ``` ### Setup There are already some sane defaults that you may like, however you can change them to match your taste. These are the defaults: ```lua transparent_background = false, term_colors = false, styles = { comments = "italic", functions = "italic", keywords = "italic", strings = "NONE", variables = "italic", }, integrations = { treesitter = true, native_lsp = { enabled = true, virtual_text = { errors = "italic", hints = "italic", warnings = "italic", information = "italic", }, underlines = { errors = "underline", hints = "underline", warnings = "underline", information = "underline", }, }, lsp_trouble = false, cmp = true, lsp_saga = false, gitgutter = false, gitsigns = true, telescope = true, nvimtree = { enabled = true, show_root = false, transparent_panel = false, }, neotree = { enabled = false, show_root = false, transparent_panel = false, }, which_key = false, indent_blankline = { enabled = true, colored_indent_levels = false, }, dashboard = true, neogit = false, vim_sneak = false, fern = false, barbar = false, bufferline = true, markdown = true, lightspeed = false, ts_rainbow = false, hop = false, notify = true, telekasten = true, symbols_outline = true, } ``` The way you setup the settings on your configuration varies on whether you are using vimL for this or Lua.
For init.lua

```lua local catppuccin = require("catppuccin") -- configure it catppuccin.setup() ```

For init.vim

```lua lua << EOF local catppuccin = require("catppuccin") -- configure it catppuccin.setup() EOF ```

After setting things up, you can load catppuccin like so: ```vim " Vim Script colorscheme catppuccin ``` ```lua -- Lua vim.cmd[[colorscheme catppuccin]] ``` ### Configuration Although settings already have self-explanatory names, here is where you can find info about each one of them and their classifications! #### General This settings are unrelated to any group and are independent. - `transparent_background`: (Boolean) if true, disables setting the background color. - `term_colors`: (Boolean) if true, sets terminal colors (e.g. `g:terminal_color_0`). #### Styles Handles the style of general hi groups (see `:h highlight-args`): - `comments`: (String) changed the style of the comments. - `functions`: (String) changed the style of the functions. - `keywords`: (String) changed the style of the keywords. - `strings`: (String) changed the style of the strings. - `variables`: (String) changed the style of the variables. #### Integrations These integrations allow catppuccin to set the theme of various plugins/stuff. To enable an integration you just need to set it to `true`, however, there are some special integrations... If you'd like to know which highlight groups are being affected by catppuccin, checkout this directory: [`lua/catppuccin/core/integrations/`](https://github.com/catppuccin/nvim/tree/main/lua/catppuccin/core/integrations). ##### Special Integrations - **Feline.nvim**: Catppuccin provides this integration as a component that you can select on your Feline config: ```lua require("feline").setup({ components = require('catppuccin.core.integrations.feline'), }) ``` - **Indent-blankline.nvim**: setting `enabled` to `true` enables this integration. `colored_indent_levels` enables char highlights per indent level. Follow the instructions [here](https://github.com/lukas-reineke/indent-blankline.nvim#with-custom-gindent_blankline_char_highlight_list) to set the latter up. - **Lightline:** use this to set it up (Note: `catppuccin` is the only valid colorscheme name. It will pick the one set in your config): ```lua let g:lightline = {'colorscheme': 'catppuccin'} ``` - **Lualine:** use this to set it up (Note: `catppuccin` is the only valid theme name. It will pick the one set in your config): ```lua require('lualine').setup { options = { theme = "catppuccin" -- ... the rest of your lualine config } } ``` - **Native Nvim LSP:** setting `enabled` to `true` enables this integration. In the inners tables you can set the style for the diagnostics, both `virtual_text` (what you see on the side) and `underlines` (what points directly at the thing (e.g. an error)). - **NvimTree:** setting `enabled` to `true` enables this integration: ```lua integration = { nvimtree = { enabled = true, show_root = true, -- makes the root folder not transparent transparent_panel = false, -- make the panel transparent } } ``` - **Neo-tree:** setting `enabled` to `true` enables this integration: ```lua integration = { neotree = { enabled = true, show_root = true, -- makes the root folder not transparent transparent_panel = false, -- make the panel transparent } } ``` ### Extra #### API The API allows you fetch data from Catppuccin. It can be required as a Lua module: ```lua local cp_api = require("catppuccin.api.") ``` ##### Modules - `colors` ```lua cp_api.get_colors() ``` > Returns a table where the key is the name of the color and the value is its hex value. #### Overwriting highlight groups Highlight groups can be overwritten like so: ```lua catppuccin.remap({ = { }, }) ``` Here is an example: ```lua local colors = require'catppuccin.api.colors'.get_colors() -- fetch colors with API catppuccin.remap({ Comment = { fg = colors.flamingo }, }) ``` #### Hooks Use them to execute code at certain events. These are the ones available: | Function | Description | | ------------------ | ---------------------------- | | `before_loading()` | Before loading a colorscheme | | `after_loading()` | After loading a colorscheme | They can be used like so: ```lua local catppuccin = require("catppuccin") catppuccin.before_loading = function () print("I ran before loading Catppuccin!") end ``` ## Thanks to - [Pocco81](https://github.com/Pocco81)  

Copyright © 2020-present Catppuccin Org


近期下载者

相关文件


收藏者