Skip to content

Commit

Permalink
Merge pull request #190 from nullchilly/ci
Browse files Browse the repository at this point in the history
config(tree): default to show_root = true
  • Loading branch information
pocco81 authored Jul 14, 2022
2 parents 1435867 + a55e0bb commit a8af02b
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 44 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/formatting.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: stylua
on:
push:
branches: ["main", "dev"]
paths-ignore:
- ".github/**"

jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check --config-path=stylua.toml .
65 changes: 39 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ integrations = {
telescope = true,
nvimtree = {
enabled = true,
show_root = false,
show_root = true,
transparent_panel = false,
},
neotree = {
enabled = false,
show_root = false,
show_root = true,
transparent_panel = false,
},
which_key = false,
Expand Down Expand Up @@ -262,10 +262,10 @@ let g:lightline = {'colorscheme': 'catppuccin'}

```lua
require('lualine').setup {
options = {
theme = "catppuccin"
-- ... the rest of your lualine config
}
options = {
theme = "catppuccin"
-- ... the rest of your lualine config
}
}
```

Expand All @@ -274,22 +274,22 @@ require('lualine').setup {

```lua
integration = {
nvimtree = {
enabled = true,
show_root = true, -- makes the root folder not transparent
transparent_panel = false, -- make the panel transparent
}
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
}
neotree = {
enabled = true,
show_root = true, -- makes the root folder not transparent
transparent_panel = false, -- make the panel transparent
}
}
```

Expand All @@ -312,21 +312,34 @@ By default catppuccin writes the compiled results into the system's cache direct

Catppuccin provides these commands to work with the catppuccin compiler.

```vim
```bash
:CatppuccinCompile # Create/update the compile file
:CatppuccinClean # Delete compiled file
```

It's recommended to add `:CatppuccinCompile` to run everytime you update your config. For example:

```
```lua
use {
"catppuccin/nvim",
as = "catppuccin",
run = ":CatppuccinCompile",
}
```

To auto-compile catppuccin after `:PackerCompile`, create an autocmd `PackerCompileDone` in User group

For example, if your plugin specification is in `~/.config/nvim/lua/plugins.lua` then the pattern is `plugins.lua`

```lua
vim.api.nvim_create_autocmd("User PackerCompileDone", {
pattern = "plugins.lua",
callback = function()
vim.cmd "CatppuccinCompile"
end,
})
```

Acknowledge: [nightfox.nvim#compile](https://github.com/EdenEast/nightfox.nvim#compile)

### Extra
Expand Down Expand Up @@ -370,9 +383,9 @@ Colors can be overwritten using `vim.g.catppucin_override_colors`:

```lua
vim.g.catppuccin_override_colors = {
base = "#ff0000",
mantle = "#242424",
crust = "#474747",
base = "#ff0000",
mantle = "#242424",
crust = "#474747",
}
```

Expand Down Expand Up @@ -401,11 +414,11 @@ Instead of `after_loading` hook, you can use autocmd event like this:

```lua
vim.api.nvim_create_autocmd("User", {
pattern = "CatppuccinLoaded",
callback = function()
local colors = require("catppuccin.api.colors").get_colors()
-- do something with colors
end
pattern = "CatppuccinLoaded",
callback = function()
local colors = require("catppuccin.api.colors").get_colors()
-- do something with colors
end
})
```

Expand Down
2 changes: 1 addition & 1 deletion lua/catppuccin/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ config.options = {
},
neotree = {
enabled = false,
show_root = false,
show_root = true,
transparent_panel = false,
},
which_key = false,
Expand Down

0 comments on commit a8af02b

Please sign in to comment.