From 77edaeee8b691832315b4394321031cb24205d12 Mon Sep 17 00:00:00 2001 From: marcel Date: Sun, 27 Oct 2024 20:16:15 +0100 Subject: Add mini.statusline support (#46) * feat: add mini-statusline group * docs: add mini.statusline to the list of supported plugins --- README.md | 1 + doc/no-clown-fiesta.txt | 1 + lua/no-clown-fiesta/groups/init.lua | 1 + lua/no-clown-fiesta/groups/mini-statusline.lua | 12 ++++++++++++ 4 files changed, 15 insertions(+) create mode 100644 lua/no-clown-fiesta/groups/mini-statusline.lua diff --git a/README.md b/README.md index c46ed6f..65bdce8 100644 --- a/README.md +++ b/README.md @@ -103,3 +103,4 @@ Other plugin managers are left as an exercise to the reader. - Telescope - Treesitter - WhichKey +- mini.statusline diff --git a/doc/no-clown-fiesta.txt b/doc/no-clown-fiesta.txt index fe78c27..afaf841 100644 --- a/doc/no-clown-fiesta.txt +++ b/doc/no-clown-fiesta.txt @@ -60,4 +60,5 @@ SUPPORTED PLUGINS *no-clown-fiesta-supported_plugin * Treesitter * StatusLine (the default non custom one) * WhichKey +* Mini.statusline diff --git a/lua/no-clown-fiesta/groups/init.lua b/lua/no-clown-fiesta/groups/init.lua index 12219d0..d5e32fd 100644 --- a/lua/no-clown-fiesta/groups/init.lua +++ b/lua/no-clown-fiesta/groups/init.lua @@ -11,6 +11,7 @@ return { require "no-clown-fiesta.groups.lsp", require "no-clown-fiesta.groups.markdown", require "no-clown-fiesta.groups.mason", + require "no-clown-fiesta.groups.mini-statusline", require "no-clown-fiesta.groups.neogit", require "no-clown-fiesta.groups.neotest", require "no-clown-fiesta.groups.noice", diff --git a/lua/no-clown-fiesta/groups/mini-statusline.lua b/lua/no-clown-fiesta/groups/mini-statusline.lua new file mode 100644 index 0000000..6920f46 --- /dev/null +++ b/lua/no-clown-fiesta/groups/mini-statusline.lua @@ -0,0 +1,12 @@ +local M = {} + +function M.highlight(palette, opts) + return { + MiniStatuslineFilename = { fg = palette.light_gray, bg = palette.bg }, + MiniStatuslineDevinfo = { fg = palette.medium_gray, bg = palette.bg }, + MiniStatuslineFileinfo = { fg = palette.medium_gray, bg = palette.bg }, + MiniStatuslineInactive = { fg = palette.gray, bg = palette.bg }, + } +end + +return M -- cgit v1.2.3-70-g09d2