From 7c33f977dcbaffb285fc90c0a3702024a186437c Mon Sep 17 00:00:00 2001 From: Jordan Isaacs Date: Thu, 27 Jul 2023 23:40:00 -0700 Subject: [PATCH] Update all inputs * Every flake input that is used was updated (#33) * Internal configuration handling of breaking changes --- docs/release-notes/rl-0.1.adoc | 2 + flake.lock | 281 ++++++++++------------- flake.nix | 337 +++++++++++----------------- modules/autopairs/default.nix | 7 - modules/build/default.nix | 32 ++- modules/filetree/nvimtreelua.nix | 20 +- modules/git/default.nix | 72 ++++-- modules/languages/markdown.nix | 16 +- modules/languages/sql.nix | 4 +- modules/tabline/nvim-bufferline.nix | 2 +- modules/theme/supported_themes.nix | 6 +- 11 files changed, 358 insertions(+), 421 deletions(-) diff --git a/docs/release-notes/rl-0.1.adoc b/docs/release-notes/rl-0.1.adoc index 9d3760a..86f1d98 100644 --- a/docs/release-notes/rl-0.1.adoc +++ b/docs/release-notes/rl-0.1.adoc @@ -51,6 +51,8 @@ vim.luaConfigRC = lib.nvim.dag.entryAnywhere "config here" * Add support for extending configurations. See docs for more details. +* Removed the deprecated `openOnStartup` option from nvim-tree-lua + https://github.com/MoritzBoehme[MoritzBoehme]: * `catppuccin` theme is now available as a neovim theme <> and lualine theme <>. diff --git a/flake.lock b/flake.lock index c2888a5..2cb0b36 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "bufdelete-nvim": { "flake": false, "locked": { - "lastModified": 1649744299, - "narHash": "sha256-0Igk8iPt4UQQTJRBPzTASzNOqY4zlaMiE1PQiBc/KGc=", + "lastModified": 1688027130, + "narHash": "sha256-UubYRfRAXZ89WOc3QFMvAMjNjLW6bV4nDgSa1CRZkIM=", "owner": "famiu", "repo": "bufdelete.nvim", - "rev": "96454aedf95f52393a28cfcfc76482895de014ee", + "rev": "07d1f8ba79dec59d42b975a4df1c732b2e4e37b4", "type": "github" }, "original": { @@ -19,11 +19,11 @@ "catppuccin": { "flake": false, "locked": { - "lastModified": 1670687538, - "narHash": "sha256-BRQLNMYbOINJXQkKFz2SpXQoaynzcauWSwNfTChaLdc=", + "lastModified": 1690345108, + "narHash": "sha256-Zz7MambcSOdpcXSpg4mAKeaGjm4u76h8psS+fH/nUlg=", "owner": "catppuccin", "repo": "nvim", - "rev": "1d22da687d36c37133b13f2b41658c1c989e77e0", + "rev": "737f60a3a25c79d9bb9574092f6c6c958a3d747a", "type": "github" }, "original": { @@ -51,11 +51,11 @@ "cmp-nvim-lsp": { "flake": false, "locked": { - "lastModified": 1675708067, - "narHash": "sha256-DxpcPTBlvVP88PDoTheLV2fC76EXDqS2UpM5mAfj/D4=", + "lastModified": 1687494203, + "narHash": "sha256-mU0soCz79erJXMMqD/FyrJZ0mu2n6fE0deymPzQlxts=", "owner": "hrsh7th", "repo": "cmp-nvim-lsp", - "rev": "0e6b2ed705ddcff9738ec4ea838141654f12eeef", + "rev": "44b16d11215dce86f253ce0c30949813c0a90765", "type": "github" }, "original": { @@ -115,11 +115,11 @@ "crates-nvim": { "flake": false, "locked": { - "lastModified": 1668709750, - "narHash": "sha256-MdmZrZu877P0l4yeJNI6muiYmwVlsvFHJCEBrrhR1Zc=", + "lastModified": 1688295570, + "narHash": "sha256-ah+fTmzkZn+xuL3sG2RxlCtDiFsRv3SY1iJzYKMIaMg=", "owner": "Saecki", "repo": "crates.nvim", - "rev": "e11e27864428a68b25e43b833e9081e350a38d96", + "rev": "4ce7c51b881e58f1e2f8f437f30e4e583cbac319", "type": "github" }, "original": { @@ -148,11 +148,11 @@ "dracula": { "flake": false, "locked": { - "lastModified": 1671745750, - "narHash": "sha256-mKLU4xK3OggTJ8HDki/nj15OsxqAIS8C3lvnW54s5f4=", + "lastModified": 1687207996, + "narHash": "sha256-wPV6g4ggwI2yHHIFH8wUp7jsfd2MXUoyXKcKmqJTbuc=", "owner": "dracula", "repo": "vim", - "rev": "eb577d47b0cfc9191bf04c414b4042d5f1a980f8", + "rev": "3e52a0682a53dd7c2c53133d45948f5a49c5fd9a", "type": "github" }, "original": { @@ -164,11 +164,11 @@ "dracula-nvim": { "flake": false, "locked": { - "lastModified": 1680215271, - "narHash": "sha256-f8zgWs0qmRjYAAfQsrNNYrmvFd2rjVnGwwdZu1pBJ58=", + "lastModified": 1689529500, + "narHash": "sha256-q93nVYYruxK6/GnI9bIDzGSjkIyOLxzoA9fi6qb2jyU=", "owner": "Mofiqul", "repo": "dracula.nvim", - "rev": "8653e7699810b63bda8ef267055cb4d4237670ef", + "rev": "948d237241b91389c8c2f109885b91cd2574b8bb", "type": "github" }, "original": { @@ -211,11 +211,11 @@ "gitsigns-nvim": { "flake": false, "locked": { - "lastModified": 1666700386, - "narHash": "sha256-pSYXCENFw/z7xppenPehniX8+INkrl+l1LgKKGlfrjQ=", + "lastModified": 1690463120, + "narHash": "sha256-kraK0GP5aLGbh1eVZCm41D6BztjFxthSXGnE5CxhrZs=", "owner": "lewis6991", "repo": "gitsigns.nvim", - "rev": "851cd32caaea84f303c4fdf51d72dfa5fcd795bb", + "rev": "5d73da785a3c05fd63ac31769079db05169a6ec7", "type": "github" }, "original": { @@ -227,11 +227,11 @@ "glow-nvim": { "flake": false, "locked": { - "lastModified": 1649861698, - "narHash": "sha256-c2HrVLCyekw9b8FxxVMUkBkUitGDX1AyslmM1kZQeCQ=", + "lastModified": 1690503777, + "narHash": "sha256-JU1nSRAgweiUeW5/r1/gGbMrKUOAOJD+8w9RxDDP6uk=", "owner": "ellisonleao", "repo": "glow.nvim", - "rev": "0c76518e440f2ea4dbadd87beec8eea4ce030f17", + "rev": "0bd87753b052205d271a790b48a09882a9e79f35", "type": "github" }, "original": { @@ -243,11 +243,11 @@ "gruvbox": { "flake": false, "locked": { - "lastModified": 1680184819, - "narHash": "sha256-ysQUMMPzFCrtDV/gpGeVlXxPKmC7oba4PxFuuc1HMu0=", + "lastModified": 1682256511, + "narHash": "sha256-XTwPcq1dyZKVy1b+FUUjMEHndpcTPYSp1p7bx9m8+Bg=", "owner": "ellisonleao", "repo": "gruvbox.nvim", - "rev": "1a8ba635e511148801b55a1128aef933c296a301", + "rev": "df149bccb19a02c5c2b9fa6ec0716f0c0487feb0", "type": "github" }, "original": { @@ -259,11 +259,11 @@ "indent-blankline": { "flake": false, "locked": { - "lastModified": 1676854912, - "narHash": "sha256-dBm0vnza+fBYxlgUDR1/57GZ+kd7CUVgkQIcZEFWl9k=", + "lastModified": 1688727830, + "narHash": "sha256-efMRkxjbr6o7kSKAEn0Kaw8lsDubRmc1N0Kd1BZ3A7k=", "owner": "lukas-reineke", "repo": "indent-blankline.nvim", - "rev": "018bd04d80c9a73d399c1061fa0c3b14a7614399", + "rev": "4541d690816cb99a7fc248f1486aa87f3abce91c", "type": "github" }, "original": { @@ -339,11 +339,11 @@ "lualine": { "flake": false, "locked": { - "lastModified": 1680518501, - "narHash": "sha256-DDEMbiERaJ7I10TCeVLZcK7rxVEC5gId4P5+z9YTM4A=", + "lastModified": 1683213422, + "narHash": "sha256-ltHE8UIquGo07BSlFGM1l3wmTNN43i8kx6QY7Fj2CNo=", "owner": "hoob3rt", "repo": "lualine.nvim", - "rev": "c28a7427c3fb29322db136f0564ec58807b26747", + "rev": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9", "type": "github" }, "original": { @@ -384,26 +384,26 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1680078255, - "narHash": "sha256-eNRVigfm3E2rooMqCaywuiWJGgGHIX2N2TbVgKptewE=", - "owner": "oxalica", + "lastModified": 1690509298, + "narHash": "sha256-2QaWrYIXvip9Ii64AplrkEmKuPt3rnQHq74Scg5dXxk=", + "owner": "jordanisaacs", "repo": "nil", - "rev": "f3eaa770022329ca16e6668d731ab00b9cc0bd87", + "rev": "a2668f5680c48d6ed14f4de7afbbd5f54810f76e", "type": "github" }, "original": { - "owner": "oxalica", + "owner": "jordanisaacs", "repo": "nil", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1683020768, - "narHash": "sha256-ZyZl6k9NWS5QPwD3NoAVz/eSgodQDvl+y+fu8MVbrHc=", + "lastModified": 1690441914, + "narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=", "owner": "nixos", "repo": "nixpkgs", - "rev": "44f30edf5661d86fb3a95841c35127f3d0ea8b0f", + "rev": "db8672b8d0a2593c2405aed0c1dfa64b2a2f428f", "type": "github" }, "original": { @@ -414,22 +414,6 @@ } }, "nixpkgs_2": { - "locked": { - "lastModified": 1656753965, - "narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { "locked": { "lastModified": 1655400192, "narHash": "sha256-49OBVVRgb9H/PSmNT9W61+NRdDbuSJVuDDflwXlaUKU=", @@ -464,11 +448,11 @@ "null-ls": { "flake": false, "locked": { - "lastModified": 1680199095, - "narHash": "sha256-P4rQZnVuStgtkoeDLFrzn44LA5vRcvx5G2PjNDNNvUQ=", + "lastModified": 1688652536, + "narHash": "sha256-6KJtj9pbvBm6fOVpnyzO2fEVC+cVrw2XtZHOgq9ieIw=", "owner": "jose-elias-alvarez", "repo": "null-ls.nvim", - "rev": "d112a351ef8ff20060100fdc20e402a5880c4ef0", + "rev": "db09b6c691def0038c456551e4e2772186449f35", "type": "github" }, "original": { @@ -480,11 +464,11 @@ "nvim-autopairs": { "flake": false, "locked": { - "lastModified": 1651184422, - "narHash": "sha256-voiBJw752//W5oAGQ3wFl4XOUE5PGc/ddchXpWUfgFE=", + "lastModified": 1689332359, + "narHash": "sha256-bu+WpW5Wfk3pS74mzVvehl7dVMHgrttmV4ZSlfwbai4=", "owner": "windwp", "repo": "nvim-autopairs", - "rev": "63779ea99ed43ab22660ac6ae5b506a40bf41aeb", + "rev": "ae5b41ce880a6d850055e262d6dfebd362bb276e", "type": "github" }, "original": { @@ -496,16 +480,16 @@ "nvim-bufferline-lua": { "flake": false, "locked": { - "lastModified": 1666171880, - "narHash": "sha256-hueIGT7KOhca0kP0M1nUYzBrzMz+DpuZSOt5iyuEa40=", + "lastModified": 1689661992, + "narHash": "sha256-0BJXUDGeUhPALEnPgO4ix+GgI/3P/Foiqi0tf2mgUXg=", "owner": "akinsho", "repo": "nvim-bufferline.lua", - "rev": "e70be6232f632d16d2412b1faf85554285036278", + "rev": "d24378edc14a675c820a303b4512af3bbc5761e9", "type": "github" }, "original": { "owner": "akinsho", - "ref": "v3.0.1", + "ref": "v4.3.0", "repo": "nvim-bufferline.lua", "type": "github" } @@ -513,11 +497,11 @@ "nvim-cmp": { "flake": false, "locked": { - "lastModified": 1683137396, - "narHash": "sha256-IWaggnwxUz5ukczIazfmfXMfloHtIqyRdt9gOHzTuk4=", + "lastModified": 1688965049, + "narHash": "sha256-Hq6YUfMQo1rHoay3/NieGCne7U/f06GwUPhN2HO0PdQ=", "owner": "hrsh7th", "repo": "nvim-cmp", - "rev": "8d2f190506013064775ec328377e196ab343ad61", + "rev": "c4e491a87eeacf0408902c32f031d802c7eafce8", "type": "github" }, "original": { @@ -529,11 +513,11 @@ "nvim-code-action-menu": { "flake": false, "locked": { - "lastModified": 1647509555, - "narHash": "sha256-fD9luuZe5mVkJTTtngH0jnwtqljhSZp0OFobBa4uqZI=", + "lastModified": 1671523188, + "narHash": "sha256-7szx+Me6WhrANbmfQ6C6gfSVB2owd02b3iZYhz7K6wY=", "owner": "weilbith", "repo": "nvim-code-action-menu", - "rev": "a864a79c8e024d4f5d95915210188c9c3430b160", + "rev": "e4399dbaf6eabff998d3d5f1cbcd8d9933710027", "type": "github" }, "original": { @@ -542,22 +526,6 @@ "type": "github" } }, - "nvim-compe": { - "flake": false, - "locked": { - "lastModified": 1633188506, - "narHash": "sha256-Y2oqvsuAKM3qjmmtJVD9z34682eCRF25kPL+rxhhg7I=", - "owner": "hrsh7th", - "repo": "nvim-compe", - "rev": "d186d739c54823e0b010feb205c6f97792322c08", - "type": "github" - }, - "original": { - "owner": "hrsh7th", - "repo": "nvim-compe", - "type": "github" - } - }, "nvim-cursorline": { "flake": false, "locked": { @@ -577,11 +545,11 @@ "nvim-lightbulb": { "flake": false, "locked": { - "lastModified": 1645713830, - "narHash": "sha256-LxGA2LX9CASodJnZYXGZfGPOeW38MW7z54gYQSDmhRE=", + "lastModified": 1689887436, + "narHash": "sha256-Meoop66jINllnxN6aohuPmU7DEjn64FMq/b8zuy9FEQ=", "owner": "kosayoda", "repo": "nvim-lightbulb", - "rev": "29ca81408119ba809d1f922edc941868af97ee86", + "rev": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9", "type": "github" }, "original": { @@ -593,16 +561,15 @@ "nvim-lspconfig": { "flake": false, "locked": { - "lastModified": 1671465698, - "narHash": "sha256-yYFAqT4XaImry/JUB34GMp60llHWkmTCZl2hdGR148U=", + "lastModified": 1690356683, + "narHash": "sha256-Ama9nLC/T1wJWal6bKvgY0ywUUiJ5VLuIxoY1xbJKtY=", "owner": "neovim", "repo": "nvim-lspconfig", - "rev": "22c87d6f48c4fb1daf33476450d0b14a64230809", + "rev": "b6091272422bb0fbd729f7f5d17a56d37499c54f", "type": "github" }, "original": { "owner": "neovim", - "ref": "v0.1.4", "repo": "nvim-lspconfig", "type": "github" } @@ -626,11 +593,11 @@ "nvim-tree-lua": { "flake": false, "locked": { - "lastModified": 1662860472, - "narHash": "sha256-3aB1xDU0cylHfZ5yzxMQKf07qrJ1pwHEl+QV42k0CpQ=", + "lastModified": 1690096369, + "narHash": "sha256-aLw0ysDIJWOP2x1XppaHBmmRYfL4IzM5xQ+1WuW0QLM=", "owner": "kyazdani42", "repo": "nvim-tree.lua", - "rev": "fb8735e96cecf004fbefb086ce85371d003c5129", + "rev": "273c1700eb68c27dce4e518efafc8144fd7ce4ab", "type": "github" }, "original": { @@ -642,11 +609,11 @@ "nvim-treesitter-context": { "flake": false, "locked": { - "lastModified": 1680628174, - "narHash": "sha256-okZHxItZSiC31NPgN4xQvzEw7wQZl4HjnzAGPV9FGt8=", + "lastModified": 1689239188, + "narHash": "sha256-AJamiDezFK7l0bqb/VFm+pzBKugQNCmQ6JAWKmjH76g=", "owner": "nvim-treesitter", "repo": "nvim-treesitter-context", - "rev": "68eaeb86738c660f7f31afb2cbfb2bdec50bbd92", + "rev": "6f8f788738b968f24a108ee599c5be0031f94f06", "type": "github" }, "original": { @@ -658,11 +625,11 @@ "nvim-ts-autotag": { "flake": false, "locked": { - "lastModified": 1650591994, - "narHash": "sha256-YsqWrmsbp0NhCrnJQo8Df6yQr4f0shS6GdcEQaHdJDE=", + "lastModified": 1686883732, + "narHash": "sha256-4qTtXYA5HyG1sADV0wsiccO/G89qEoYPmlg8tTx7h8g=", "owner": "windwp", "repo": "nvim-ts-autotag", - "rev": "044a05c4c51051326900a53ba98fddacd15fea22", + "rev": "6be1192965df35f94b8ea6d323354f7dc7a557e4", "type": "github" }, "original": { @@ -674,11 +641,11 @@ "nvim-web-devicons": { "flake": false, "locked": { - "lastModified": 1651408174, - "narHash": "sha256-hYFDefTMcdtoQLhwUaamyGuid69kUo+95P1wjoS2dmo=", + "lastModified": 1689474464, + "narHash": "sha256-FtEJBhqvs+c/Rvy4qXf3iyoMTTKrDBvQw5g63n4KEYo=", "owner": "kyazdani42", "repo": "nvim-web-devicons", - "rev": "bdd43421437f2ef037e0dafeaaaa62b31d35ef2f", + "rev": "efbfed0567ef4bfac3ce630524a0f6c8451c5534", "type": "github" }, "original": { @@ -722,11 +689,11 @@ "plantuml-previewer": { "flake": false, "locked": { - "lastModified": 1675741402, - "narHash": "sha256-2MPyR/5C/yVOE8tKDEzyjVB4KNokXk7/j3qju5BWcRs=", + "lastModified": 1678208089, + "narHash": "sha256-W+TcvgB2baKCOQEq0ZbdnRKfX5fGD8cTLkamhr2PbV8=", "owner": "weirongxu", "repo": "plantuml-previewer.vim", - "rev": "192cbc2349d4a5c772089b4ea72e085fa61790ff", + "rev": "1dd4d0f2b09cd80a217f76d82f93830dbbe689b3", "type": "github" }, "original": { @@ -754,11 +721,11 @@ "plenary-nvim": { "flake": false, "locked": { - "lastModified": 1650205145, - "narHash": "sha256-QKVFz95XaJrwkFaWqUHBirMFagellRn2YpNYnBeI/10=", + "lastModified": 1689589150, + "narHash": "sha256-oRtNcURQzrIRS3D88tWAl3HuFHxVJr8m/zzL7xoa/II=", "owner": "nvim-lua", "repo": "plenary.nvim", - "rev": "9069d14a120cadb4f6825f76821533f2babcab92", + "rev": "267282a9ce242bbb0c5dc31445b6d353bed978bb", "type": "github" }, "original": { @@ -786,8 +753,12 @@ "rnix-lsp": { "inputs": { "naersk": "naersk", - "nixpkgs": "nixpkgs_2", - "utils": "utils" + "nixpkgs": [ + "flake-utils" + ], + "utils": [ + "flake-utils" + ] }, "locked": { "lastModified": 1669555118, @@ -834,7 +805,6 @@ "nvim-bufferline-lua": "nvim-bufferline-lua", "nvim-cmp": "nvim-cmp", "nvim-code-action-menu": "nvim-code-action-menu", - "nvim-compe": "nvim-compe", "nvim-cursorline": "nvim-cursorline", "nvim-lightbulb": "nvim-lightbulb", "nvim-lspconfig": "nvim-lspconfig", @@ -873,11 +843,11 @@ ] }, "locked": { - "lastModified": 1678415622, - "narHash": "sha256-tems1jHETCYEen8QrW61yVVX0F4zOGy4ImB43iDc7bY=", + "lastModified": 1688783586, + "narHash": "sha256-HHaM2hk2azslv1kH8zmQxXo2e7i5cKgzNIuK4yftzB0=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "9f687941160108f89dd8bd2c650d32c15a35c7c7", + "rev": "7a29283cc242c2486fc67f60b431ef708046d176", "type": "github" }, "original": { @@ -889,11 +859,11 @@ "rust-tools": { "flake": false, "locked": { - "lastModified": 1673136837, - "narHash": "sha256-+/kK6MU2EiSBFbfqQJwLkJICXZpf8oiShbcvsls3V8A=", + "lastModified": 1689033186, + "narHash": "sha256-jtfyDxifchznUupLSao6nmpVqaX1yO0xN+NhqS9fgxg=", "owner": "simrat39", "repo": "rust-tools.nvim", - "rev": "df584e84393ef255f5b8cbd709677d6a3a5bf42f", + "rev": "0cc8adab23117783a0292a0c8a2fbed1005dc645", "type": "github" }, "original": { @@ -905,11 +875,11 @@ "sqls-nvim": { "flake": false, "locked": { - "lastModified": 1651347942, - "narHash": "sha256-ewCkqU5Kj1MQAjRRzOWalLcv/uOLEbtK1jFrySvZ8Y8=", + "lastModified": 1684697500, + "narHash": "sha256-jKFut6NZAf/eIeIkY7/2EsjsIhvZQKCKAJzeQ6XSr0s=", "owner": "nanotee", "repo": "sqls.nvim", - "rev": "c52945aacf30247a3b82c586681c414dcd2359bd", + "rev": "4b1274b5b44c48ce784aac23747192f5d9d26207", "type": "github" }, "original": { @@ -938,11 +908,11 @@ "telescope": { "flake": false, "locked": { - "lastModified": 1651391210, - "narHash": "sha256-aEY/4ra7qyaXQg3H++b0JUbF7G2nI4m5Ow9daZO/duE=", + "lastModified": 1690442690, + "narHash": "sha256-vecmMzQpCBswU+wyZw4c92xqRPlpH9X3AGXajOs0fic=", "owner": "nvim-telescope", "repo": "telescope.nvim", - "rev": "544c5ee40752ac5552595da86a62abaa39e2dfa9", + "rev": "22735947d84d78f29436c203f0a4b8dc15dda204", "type": "github" }, "original": { @@ -971,19 +941,19 @@ "tidalcycles": { "inputs": { "dirt-samples-src": "dirt-samples-src", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "superdirt-src": "superdirt-src", "tidal-src": "tidal-src", - "utils": "utils_2", + "utils": "utils", "vim-tidal-src": "vim-tidal-src", "vowel-src": "vowel-src" }, "locked": { - "lastModified": 1661670241, - "narHash": "sha256-+5C83z+Sd8ugvMshrXqpca4vv3tQ2D4tYEJ3QY6JVsg=", + "lastModified": 1664760044, + "narHash": "sha256-e5LGk/tDnphory1mYhADgPnVtShofY2w/3xY09jEE2A=", "owner": "mitchmindtree", "repo": "tidalcycles.nix", - "rev": "fefe3d586511e1cfaac79bb83ec0b278bb1b6bad", + "rev": "3f3a820cd43709077d15a24fa6062de7d623a6bf", "type": "github" }, "original": { @@ -1011,11 +981,11 @@ "tokyonight": { "flake": false, "locked": { - "lastModified": 1666558747, - "narHash": "sha256-hZufHQkI2M0I4mEqV9qs6PkL74aqScKJ3RA5QOulX+0=", + "lastModified": 1689285710, + "narHash": "sha256-x26qLaZzg7sJIc1d/5Q/DJ/YvRSc3s87PwPHTPTl+Xk=", "owner": "folke", "repo": "tokyonight.nvim", - "rev": "16a294bea92dc8f16ad205c71ce61bf05e79deb3", + "rev": "1ee11019f8a81dac989ae1db1a013e3d582e2033", "type": "github" }, "original": { @@ -1041,21 +1011,6 @@ } }, "utils": { - "locked": { - "lastModified": 1656928814, - "narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "utils_2": { "locked": { "lastModified": 1653893745, "narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=", @@ -1073,16 +1028,16 @@ "vim-tidal-src": { "flake": false, "locked": { - "lastModified": 1664758630, - "narHash": "sha256-fLaBMm6jSLHytIH5IUQtUfi3kaPLdruO3cxv4UcjEO4=", + "lastModified": 1685703852, + "narHash": "sha256-8gyk17YLeKpLpz3LRtxiwbpsIbZka9bb63nK5/9IUoA=", "owner": "tidalcycles", "repo": "vim-tidal", - "rev": "f15f14b12176d8f1028d0596b031c3d6e1201c3b", + "rev": "e440fe5bdfe07f805e21e6872099685d38e8b761", "type": "github" }, "original": { - "owner": "mitchmindtree", - "ref": "mitchmindtree", + "owner": "tidalcycles", + "ref": "master", "repo": "vim-tidal", "type": "github" } @@ -1090,11 +1045,11 @@ "vim-vsnip": { "flake": false, "locked": { - "lastModified": 1650631622, - "narHash": "sha256-USltEc6QGHwMqx7E9wo9qZmq+pm9FLj0CUcKoE7KPLU=", + "lastModified": 1678609126, + "narHash": "sha256-ehPnvGle7YrECn76YlSY/2V7Zeq56JGlmZPlwgz2FdE=", "owner": "hrsh7th", "repo": "vim-vsnip", - "rev": "8f199ef690ed26dcbb8973d9a6760d1332449ac9", + "rev": "7753ba9c10429c29d25abfd11b4c60b76718c438", "type": "github" }, "original": { @@ -1123,11 +1078,11 @@ "which-key": { "flake": false, "locked": { - "lastModified": 1666956294, - "narHash": "sha256-IbJP6j+M+POPhX4YbewTJiSoELvDo6y+vF0RREqqm4c=", + "lastModified": 1689491189, + "narHash": "sha256-13aa6QQ4hkWQaliQmICTng/nxutCqlzCWzAoOZhERSI=", "owner": "folke", "repo": "which-key.nvim", - "rev": "61553aeb3d5ca8c11eea8be6eadf478062982ac9", + "rev": "38b990f6eabf62014018b4aae70a97d7a6c2eb88", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index b5e5285..a98dd69 100644 --- a/flake.nix +++ b/flake.nix @@ -4,259 +4,179 @@ nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; # For generating documentation website - nmd = { - url = "gitlab:rycee/nmd"; - flake = false; - }; + nmd.url = "gitlab:rycee/nmd"; + nmd.flake = false; # LSP plugins - nvim-lspconfig = { - url = "github:neovim/nvim-lspconfig?ref=v0.1.4"; - flake = false; - }; - lspsaga = { - url = "github:tami5/lspsaga.nvim"; - flake = false; - }; - lspkind = { - url = "github:onsails/lspkind-nvim"; - flake = false; - }; - trouble = { - url = "github:folke/trouble.nvim"; - flake = false; - }; - nvim-treesitter-context = { - url = "github:nvim-treesitter/nvim-treesitter-context"; - flake = false; - }; - nvim-lightbulb = { - url = "github:kosayoda/nvim-lightbulb"; - flake = false; - }; - fidget = { - url = "github:j-hui/fidget.nvim"; - flake = false; - }; + nvim-lspconfig.url = "github:neovim/nvim-lspconfig"; + nvim-lspconfig.flake = false; - nvim-code-action-menu = { - url = "github:weilbith/nvim-code-action-menu"; - flake = false; - }; - lsp-signature = { - url = "github:ray-x/lsp_signature.nvim"; - flake = false; - }; - null-ls = { - url = "github:jose-elias-alvarez/null-ls.nvim"; - flake = false; - }; - sqls-nvim = { - url = "github:nanotee/sqls.nvim"; - flake = false; - }; - rust-tools = { - url = "github:simrat39/rust-tools.nvim"; - flake = false; - }; + lspsaga.url = "github:tami5/lspsaga.nvim"; + lspsaga.flake = false; + + lspkind.url = "github:onsails/lspkind-nvim"; + lspkind.flake = false; + + trouble.url = "github:folke/trouble.nvim"; + trouble.flake = false; + + nvim-treesitter-context.url = "github:nvim-treesitter/nvim-treesitter-context"; + nvim-treesitter-context.flake = false; + + nvim-lightbulb.url = "github:kosayoda/nvim-lightbulb"; + nvim-lightbulb.flake = false; + + fidget.url = "github:j-hui/fidget.nvim"; + fidget.flake = false; + + nvim-code-action-menu.url = "github:weilbith/nvim-code-action-menu"; + nvim-code-action-menu.flake = false; + + lsp-signature.url = "github:ray-x/lsp_signature.nvim"; + lsp-signature.flake = false; + + null-ls.url = "github:jose-elias-alvarez/null-ls.nvim"; + null-ls.flake = false; + + sqls-nvim.url = "github:nanotee/sqls.nvim"; + sqls-nvim.flake = false; + + rust-tools.url = "github:simrat39/rust-tools.nvim"; + rust-tools.flake = false; # Copying/Registers - registers = { - url = "github:tversteeg/registers.nvim"; - flake = false; - }; - nvim-neoclip = { - url = "github:AckslD/nvim-neoclip.lua"; - flake = false; - }; + registers.url = "github:tversteeg/registers.nvim"; + registers.flake = false; + + nvim-neoclip.url = "github:AckslD/nvim-neoclip.lua"; + nvim-neoclip.flake = false; # Telescope - telescope = { - url = "github:nvim-telescope/telescope.nvim"; - flake = false; - }; + telescope.url = "github:nvim-telescope/telescope.nvim"; + telescope.flake = false; # Langauge server (use master instead of nixpkgs) rnix-lsp.url = "github:nix-community/rnix-lsp"; - nil = { - url = "github:oxalica/nil"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; - }; + rnix-lsp.inputs.nixpkgs.follows = "flake-utils"; + rnix-lsp.inputs.utils.follows = "flake-utils"; + + nil.url = "github:jordanisaacs/nil"; + nil.inputs.nixpkgs.follows = "nixpkgs"; + nil.inputs.flake-utils.follows = "flake-utils"; # Filetrees - nvim-tree-lua = { - url = "github:kyazdani42/nvim-tree.lua"; - flake = false; - }; + nvim-tree-lua.url = "github:kyazdani42/nvim-tree.lua"; + nvim-tree-lua.flake = false; # Tablines - nvim-bufferline-lua = { - url = "github:akinsho/nvim-bufferline.lua?ref=v3.0.1"; - flake = false; - }; + nvim-bufferline-lua.url = "github:akinsho/nvim-bufferline.lua?ref=v4.3.0"; + nvim-bufferline-lua.flake = false; # Statuslines - lualine = { - url = "github:hoob3rt/lualine.nvim"; - flake = false; - }; + lualine.url = "github:hoob3rt/lualine.nvim"; + lualine.flake = false; # Autocompletes - nvim-compe = { - url = "github:hrsh7th/nvim-compe"; - flake = false; - }; - nvim-cmp = { - url = "github:hrsh7th/nvim-cmp"; - flake = false; - }; - cmp-buffer = { - url = "github:hrsh7th/cmp-buffer"; - flake = false; - }; - cmp-nvim-lsp = { - url = "github:hrsh7th/cmp-nvim-lsp"; - flake = false; - }; - cmp-vsnip = { - url = "github:hrsh7th/cmp-vsnip"; - flake = false; - }; - cmp-path = { - url = "github:hrsh7th/cmp-path"; - flake = false; - }; - cmp-treesitter = { - url = "github:ray-x/cmp-treesitter"; - flake = false; - }; + nvim-cmp.url = "github:hrsh7th/nvim-cmp"; + nvim-cmp.flake = false; + + cmp-buffer.url = "github:hrsh7th/cmp-buffer"; + cmp-buffer.flake = false; + + cmp-nvim-lsp.url = "github:hrsh7th/cmp-nvim-lsp"; + cmp-nvim-lsp.flake = false; + + cmp-vsnip.url = "github:hrsh7th/cmp-vsnip"; + cmp-vsnip.flake = false; + + cmp-path.url = "github:hrsh7th/cmp-path"; + cmp-path.flake = false; + + cmp-treesitter.url = "github:ray-x/cmp-treesitter"; + cmp-treesitter.flake = false; # snippets - vim-vsnip = { - url = "github:hrsh7th/vim-vsnip"; - flake = false; - }; + vim-vsnip.url = "github:hrsh7th/vim-vsnip"; + vim-vsnip.flake = false; # Autopairs - nvim-autopairs = { - url = "github:windwp/nvim-autopairs"; - flake = false; - }; - nvim-ts-autotag = { - url = "github:windwp/nvim-ts-autotag"; - flake = false; - }; + nvim-autopairs.url = "github:windwp/nvim-autopairs"; + nvim-autopairs.flake = false; + + nvim-ts-autotag.url = "github:windwp/nvim-ts-autotag"; + nvim-ts-autotag.flake = false; # Commenting - kommentary = { - url = "github:b3nj5m1n/kommentary"; - flake = false; - }; - todo-comments = { - url = "github:folke/todo-comments.nvim"; - flake = false; - }; + kommentary.url = "github:b3nj5m1n/kommentary"; + kommentary.flake = false; + + todo-comments.url = "github:folke/todo-comments.nvim"; + todo-comments.flake = false; # Buffer tools - bufdelete-nvim = { - url = "github:famiu/bufdelete.nvim"; - flake = false; - }; + bufdelete-nvim.url = "github:famiu/bufdelete.nvim"; + bufdelete-nvim.flake = false; # Themes - tokyonight = { - url = "github:folke/tokyonight.nvim"; - flake = false; - }; + tokyonight.url = "github:folke/tokyonight.nvim"; + tokyonight.flake = false; - onedark = { - url = "github:navarasu/onedark.nvim"; - flake = false; - }; + onedark.url = "github:navarasu/onedark.nvim"; + onedark.flake = false; - catppuccin = { - url = "github:catppuccin/nvim"; - flake = false; - }; + catppuccin.url = "github:catppuccin/nvim"; + catppuccin.flake = false; - dracula-nvim = { - url = "github:Mofiqul/dracula.nvim"; - flake = false; - }; + dracula-nvim.url = "github:Mofiqul/dracula.nvim"; + dracula-nvim.flake = false; - dracula = { - url = "github:dracula/vim"; - flake = false; - }; + dracula.url = "github:dracula/vim"; + dracula.flake = false; - gruvbox = { - url = "github:ellisonleao/gruvbox.nvim"; - flake = false; - }; + gruvbox.url = "github:ellisonleao/gruvbox.nvim"; + gruvbox.flake = false; # Rust crates - crates-nvim = { - url = "github:Saecki/crates.nvim"; - flake = false; - }; + crates-nvim.url = "github:Saecki/crates.nvim"; + crates-nvim.flake = false; # Visuals - nvim-cursorline = { - url = "github:yamatsum/nvim-cursorline"; - flake = false; - }; - indent-blankline = { - url = "github:lukas-reineke/indent-blankline.nvim"; - flake = false; - }; - nvim-web-devicons = { - url = "github:kyazdani42/nvim-web-devicons"; - flake = false; - }; - gitsigns-nvim = { - url = "github:lewis6991/gitsigns.nvim"; - flake = false; - }; + nvim-cursorline.url = "github:yamatsum/nvim-cursorline"; + nvim-cursorline.flake = false; + + indent-blankline.url = "github:lukas-reineke/indent-blankline.nvim"; + indent-blankline.flake = false; + + nvim-web-devicons.url = "github:kyazdani42/nvim-web-devicons"; + nvim-web-devicons.flake = false; + + gitsigns-nvim.url = "github:lewis6991/gitsigns.nvim"; + gitsigns-nvim.flake = false; # Key binding help - which-key = { - url = "github:folke/which-key.nvim"; - flake = false; - }; + which-key.url = "github:folke/which-key.nvim"; + which-key.flake = false; # Markdown - glow-nvim = { - url = "github:ellisonleao/glow.nvim"; - flake = false; - }; + glow-nvim.url = "github:ellisonleao/glow.nvim"; + glow-nvim.flake = false; # Tidal cycles - tidalcycles = { - url = "github:mitchmindtree/tidalcycles.nix"; - inputs.vim-tidal-src.url = "github:tidalcycles/vim-tidal"; - }; + tidalcycles.url = "github:mitchmindtree/tidalcycles.nix"; + tidalcycles.inputs.vim-tidal-src.url = "github:tidalcycles/vim-tidal"; # Plenary (required by crates-nvim) - plenary-nvim = { - url = "github:nvim-lua/plenary.nvim"; - flake = false; - }; + plenary-nvim.url = "github:nvim-lua/plenary.nvim"; + plenary-nvim.flake = false; - open-browser = { - url = "github:tyru/open-browser.vim"; - flake = false; - }; + open-browser.url = "github:tyru/open-browser.vim"; + open-browser.flake = false; - plantuml-syntax = { - url = "github:aklt/plantuml-syntax"; - flake = false; - }; + plantuml-syntax.url = "github:aklt/plantuml-syntax"; + plantuml-syntax.flake = false; - plantuml-previewer = { - url = "github:weirongxu/plantuml-previewer.vim"; - flake = false; - }; + plantuml-previewer.url = "github:weirongxu/plantuml-previewer.vim"; + plantuml-previewer.flake = false; }; outputs = { @@ -278,7 +198,6 @@ "nvim-tree-lua" "nvim-bufferline-lua" "lualine" - "nvim-compe" "nvim-autopairs" "nvim-ts-autotag" "nvim-web-devicons" @@ -442,7 +361,11 @@ nixPkg = buildPkg pkgs [nixConfig]; maximalPkg = buildPkg pkgs [maximalConfig]; - devPkg = buildPkg pkgs [nixConfig {config.vim.languages.html.enable = pkgs.lib.mkForce true;}]; + devPkg = nixPkg.extendConfiguration { + modules = [ + {config.vim.languages.html.enable = true;} + ]; + }; in { apps = rec { diff --git a/modules/autopairs/default.nix b/modules/autopairs/default.nix index 3e85003..36529a5 100644 --- a/modules/autopairs/default.nix +++ b/modules/autopairs/default.nix @@ -31,13 +31,6 @@ in { vim.luaConfigRC.autopairs = nvim.dag.entryAnywhere '' require("nvim-autopairs").setup{} - ${optionalString (config.vim.autocomplete.type == "nvim-compe") '' - require('nvim-autopairs.completion.compe').setup({ - map_cr = true, - map_complete = true, - auto_select = false, - }) - ''} ''; }; } diff --git a/modules/build/default.nix b/modules/build/default.nix index a63c651..c60fde5 100644 --- a/modules/build/default.nix +++ b/modules/build/default.nix @@ -19,6 +19,29 @@ with builtins; let }; in { options = { + assertions = lib.mkOption { + type = types.listOf types.unspecified; + internal = true; + default = []; + example = [ + { + assertion = false; + message = "you can't enable this for that reason"; + } + ]; + }; + + warnings = mkOption { + internal = true; + default = []; + type = types.listOf types.str; + example = ["The `foo' service is deprecated and will go away soon!"]; + description = lib.mdDoc '' + This option allows modules to show warnings to users during + the evaluation of the system configuration. + ''; + }; + build = { viAlias = mkOption { description = "Enable vi alias"; @@ -112,8 +135,15 @@ in { plugins = normalizedPlugins; customRC = cfgBuilt.configRC; }; + + failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions); + + baseSystemAssertWarn = + if failedAssertions != [] + then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" + else lib.showWarnings config.warnings; in { - built = { + built = baseSystemAssertWarn { configRC = let mkSection = r: '' " SECTION: ${r.name} diff --git a/modules/filetree/nvimtreelua.nix b/modules/filetree/nvimtreelua.nix index cb6f9bf..b242940 100644 --- a/modules/filetree/nvimtreelua.nix +++ b/modules/filetree/nvimtreelua.nix @@ -8,6 +8,12 @@ with lib; with builtins; let cfg = config.vim.filetree.nvimTreeLua; in { + imports = [ + (mkRemovedOptionModule ["openOnSetup"] '' + `open_on_setup*` options have been removed from nvim-tree-lua. + see https://github.com/nvim-tree/nvim-tree.lua/issues/1669 + '') + ]; options.vim.filetree.nvimTreeLua = { enable = mkOption { type = types.bool; @@ -39,12 +45,6 @@ in { type = types.bool; }; - openOnSetup = mkOption { - default = true; - description = "Open when vim is started on a directory"; - type = types.bool; - }; - closeOnLastWindow = mkOption { default = true; description = "Close when tree is last window open"; @@ -144,9 +144,6 @@ in { require'nvim-tree'.setup({ disable_netrw = ${boolToString cfg.disableNetRW}, hijack_netrw = ${boolToString cfg.hijackNetRW}, - open_on_tab = ${boolToString cfg.openTreeOnNewTab}, - open_on_setup = ${boolToString cfg.openOnSetup}, - open_on_setup_file = ${boolToString cfg.openOnSetup}, system_open = { cmd = ${"'" + cfg.systemOpenCmd + "'"}, }, @@ -157,6 +154,11 @@ in { width = ${toString cfg.treeWidth}, side = ${"'" + cfg.treeSide + "'"}, }, + tab = { + sync = { + open = ${boolToString cfg.openTreeOnNewTab} + }, + }, renderer = { indent_markers = { enable = ${boolToString cfg.indentMarkers}, diff --git a/modules/git/default.nix b/modules/git/default.nix index 7777441..61f60a4 100644 --- a/modules/git/default.nix +++ b/modules/git/default.nix @@ -25,31 +25,57 @@ in { vim.luaConfigRC.gitsigns = nvim.dag.entryAnywhere '' require('gitsigns').setup { - keymaps = { - noremap = true, - - ['n gn'] = { expr = true, "&diff ? \'\' : 'Gitsigns next_hunk'"}, - ['n gp'] = { expr = true, "&diff ? \'\' : 'Gitsigns prev_hunk'"}, - - ['n gs'] = 'Gitsigns stage_hunk', - ['v gs'] = ':Gitsigns stage_hunk', - ['n gu'] = 'Gitsigns undo_stage_hunk', - ['n gr'] = 'Gitsigns reset_hunk', - ['v gr'] = ':Gitsigns reset_hunk', - ['n gR'] = 'Gitsigns reset_buffer', - ['n gp'] = 'Gitsigns preview_hunk', - ['n gb'] = 'lua require"gitsigns".blame_line{full=true}', - ['n gS'] = 'Gitsigns stage_buffer', - ['n gU'] = 'Gitsigns reset_buffer_index', - ['n gts'] = ':Gitsigns toggle_signs', - ['n gtn'] = ':Gitsigns toggle_numhl', - ['n gtl'] = ':Gitsigns toggle_linehl', - ['n gtw'] = ':Gitsigns toggle_word_diff', + on_attach = function(bufnr) + local gs = package.loaded.gitsigns + + local function map(mode, l, r, opts) + opts = opts or {} + opts.buffer = bufnr + vim.keymap.set(mode, l, r, opts) + end + + -- navigation + map('n', 'gn', function() + if vim.wo.diff then return 'gn' end + vim.schedule(function() gs.next_hunk() end) + return '' + end, {expr=true}) + + map('n', 'gp', function() + if vim.wo.diff then return 'gn' end + vim.schedule(function() gs.prev_hunk() end) + return '' + end, {expr=true}) + + -- actions + map('n', 'gs', gs.stage_hunk) + map('v', 'gs', function() gs.stage_hunk {vim.fn.line('.'), vim.fn.line('v')} end) + + map('n', 'gr', gs.reset_hunk) + map('v', 'gr', function() gs.reset_hunk {vim.fn.line('.'), vim.fn.line('v')} end) + + map('n', 'gp', gs.preview_hunk) + map('n', 'gu', gs.undo_stage_hunk) + + map('n', 'gS', gs.stage_buffer) + map('n', 'gR', gs.reset_buffer) + + map('n', 'gd', gs.diffthis) + map('n', 'gD', function() gs.diffthis('~') end) + + map('n', 'gb', function() gs.blame_line{full=true} end) + + -- Toggles + map('n', 'gtd', gs.toggle_deleted) + map('n', 'gtb', gs.toggle_current_line_blame) + map('n', 'gts', gs.toggle_signs) + map('n', 'gtn', gs.toggle_numhl) + map('n', 'gtl', gs.toggle_linehl) + map('n', 'gtw', gs.toggle_word_diff) -- Text objects - ['o ih'] = ':Gitsigns select_hunk', - ['x ih'] = ':Gitsigns select_hunk' - }, + map({'o', 'x'}, 'ih', ':Gitsigns select_hunk') + end } ''; } diff --git a/modules/languages/markdown.nix b/modules/languages/markdown.nix index 3a2195a..6a76859 100644 --- a/modules/languages/markdown.nix +++ b/modules/languages/markdown.nix @@ -36,12 +36,16 @@ in { (mkIf cfg.glow.enable { vim.startPlugins = ["glow-nvim"]; - vim.globals = { - "glow_binary_path" = "${pkgs.glow}/bin"; - }; - - vim.configRC.glow = nvim.dag.entryAnywhere '' - autocmd FileType markdown noremap p :Glow + vim.luaConfigRC.glow = nvim.dag.entryAnywhere '' + require'glow'.setup({ + glow_path = "${pkgs.glow}/bin/glow", + }) + vim.api.nvim_create_autocmd("FileType", { + pattern = "markdown", + callback = function(args) + vim.keymap.set('n', 'p', function() vim.cmd('Glow') end) + end + }) ''; }) ]); diff --git a/modules/languages/sql.nix b/modules/languages/sql.nix index 06f976f..9658121 100644 --- a/modules/languages/sql.nix +++ b/modules/languages/sql.nix @@ -15,10 +15,10 @@ with builtins; let package = pkgs.sqls; lspConfig = '' lspconfig.sqls.setup { - on_attach = function(client) + on_attach = function(client, bufnr) client.server_capabilities.execute_command = true on_attach_keymaps(client, bufnr) - require'sqls'.setup{} + require'sqls'.on_attach(client, bufnr) end, cmd = { "${cfg.lsp.package}/bin/sqls", "-config", string.format("%s/config.yml", vim.fn.getcwd()) } } diff --git a/modules/tabline/nvim-bufferline.nix b/modules/tabline/nvim-bufferline.nix index fca433f..e8f42c5 100644 --- a/modules/tabline/nvim-bufferline.nix +++ b/modules/tabline/nvim-bufferline.nix @@ -58,7 +58,7 @@ in { indicator_icon = '▎', style = 'icon', }, - buffer_close_icon = '', + buffer_close_icon = '󰅖', modified_icon = '●', close_icon = '', left_trunc_marker = '', diff --git a/modules/theme/supported_themes.nix b/modules/theme/supported_themes.nix index a2eb8ee..6591d46 100644 --- a/modules/theme/supported_themes.nix +++ b/modules/theme/supported_themes.nix @@ -48,10 +48,12 @@ in { tokyonight = { setup = '' -- need to set style before colorscheme to apply - vim.g.tokyonight_style = '${cfg.style}' + require("tokyonight").setup({ + style = "${cfg.style}", + }) vim.cmd[[colorscheme tokyonight]] ''; - styles = ["day" "night" "storm"]; + styles = ["day" "night" "storm" "moon"]; defaultStyle = "night"; };