diff --git a/lua/kulala/config/init.lua b/lua/kulala/config/init.lua index b3ee33b..3746de7 100644 --- a/lua/kulala/config/init.lua +++ b/lua/kulala/config/init.lua @@ -11,6 +11,13 @@ KULALA_CONFIG = KULALA_CONFIG or { json = { "jq", "." }, xml = { "xmllint", "--format", "-" }, html = { "xmllint", "--format", "--html", "-" }, + }, + icons = { + inlay = { + loading = "⏳", + done = "✅ " + }, + lualine = "🐼" } } diff --git a/lua/kulala/inlay/init.lua b/lua/kulala/inlay/init.lua index 286b635..76d8dd1 100644 --- a/lua/kulala/inlay/init.lua +++ b/lua/kulala/inlay/init.lua @@ -1,4 +1,5 @@ local NS = vim.api.nvim_create_namespace('jest.nvim') +local CONFIG = require("kulala.config") local M = {} @@ -12,11 +13,11 @@ M.clear = function() end M.show_loading = function() - M.show('⏳') + M.show(CONFIG.get_config().icons.inlay.loading) end M.show_done = function(self, elapsed_time) - M.show('✅ ' .. elapsed_time) + M.show(CONFIG.get_config().icons.inlay.done .. elapsed_time) end diff --git a/lua/lualine/components/kulala.lua b/lua/lualine/components/kulala.lua index 3c6e0d4..d435d81 100644 --- a/lua/lualine/components/kulala.lua +++ b/lua/lualine/components/kulala.lua @@ -1,9 +1,10 @@ local lualine_require = require("lualine_require") local M = lualine_require.require("lualine.component"):extend() +local CONFIG = require("kulala.config") local default_options = { fg = "#10B1FE", - icon = "🐼", + icon = CONFIG.get_config().icons.lualine, } function M:init(options)