Skip to content

Commit d753782

Browse files
authored
feat!: v2 rewrite using fennel (#3)
1 parent 6cda3b5 commit d753782

File tree

11 files changed

+544
-567
lines changed

11 files changed

+544
-567
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
colors/*.lua linguist-generated
2+
assets/*.sh linguist-generated
3+
extras/*.sh linguist-generated

.hotpot.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
return {
2+
build = {
3+
{ atomic = false },
4+
{
5+
"fnl/monalisa/init.fnl",
6+
function()
7+
return "colors/monalisa.lua"
8+
end,
9+
},
10+
},
11+
}

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66

77
Inspired by the painting and the iterm2 theme.
88

9-
> [!NOTE]
10-
> This theme is still a work in progress, and colors may change in the near future.
11-
12-
Built with [lush](https://github.com/rktjmp/lush.nvim).
139

1410
## Installation
1511

16-
Lazy.nvim:
12+
`lazy.nvim`:
1713
```lua
1814
{
1915
"ptdewey/monalisa-nvim",
2016
priority = 1000,
2117
}
2218
```
2319

20+
`vim.pack`:
21+
```lua
22+
vim.pack.add({ "https://github.com/ptdewey/monalisa-nvim" })
23+
```
24+
2425
## Usage
2526

2627
```lua
@@ -29,6 +30,10 @@ vim.cmd.colorscheme("monalisa")
2930

3031
## Build or Modify
3132

32-
1. Ensure [lush.nvim](https://github.com/rktjmp/lush.nvim) and [shipwright.nvim](https://github.com/rktjmp/shipwright.nvim) are installed
33-
2. Modify [lush_theme/monalisa.lua](lush_theme/monalisa.lua)
34-
3. Rebuild the colorscheme using `./build.sh`
33+
1. [fennel](https://github.com/bakpakin/Fennel) or [hotpot.nvim](https://github.com/rktjmp/hotpot.nvim/tree/main) is installed
34+
2. Modify [fnl/monalisa/init.fnl](fnl/monalisa/init.fnl) as desired
35+
3. Rebuild the colorscheme
36+
- With `fennel`: Use `./build.sh` or `just build`
37+
- With `hotpot.nvim`: Builds are automatic upon saving `fnl/monalisa/init.fnl`
38+
39+
Note: The version of monalisa made with [lush](https://github.com/rktjmp/lush.nvim) can be found on the [v1 branch](https://github.com/ptdewey/monalisa-nvim/tree/v2)

assets/screenshot1.png

480 KB
Loading

build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#!/usr/bin/env bash
22

3-
export LUA_PATH=./lush_theme/monalisa.lua
4-
5-
nvim --headless +Shipwright +qa
6-
7-
echo "MonaLisa build complete"
3+
fennel --compile fnl/monalisa/init.fnl &> colors/monalisa.lua

0 commit comments

Comments
 (0)