diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-22 11:38:33 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-22 11:38:33 +0200 |
| commit | dfde5a2769e47062a1837650c998bd81ab616195 (patch) | |
| tree | 31d948c5b82cfc7be2e2fef677fba9a60d9bb6fe /lua/plugins | |
| parent | 8593923283209cc12089d77db2d849dfc8fad015 (diff) | |
| download | dotfiles-dfde5a2769e47062a1837650c998bd81ab616195.tar.gz dotfiles-dfde5a2769e47062a1837650c998bd81ab616195.zip | |
Add fidget.nvim setup
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/fidget.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lua/plugins/fidget.lua b/lua/plugins/fidget.lua new file mode 100644 index 0000000..0f56a6b --- /dev/null +++ b/lua/plugins/fidget.lua @@ -0,0 +1,33 @@ +require("fidget").setup({ + text = { + --spinner = "pipe", -- (Default) animation shown when tasks are ongoing + --spinner = "hamburger", -- animation shown when tasks are ongoing + --spinner = "dots_pulse", -- animation shown when tasks are ongoing + spinner = "dots", -- animation shown when tasks are ongoing + done = "✔", -- character shown when all tasks are complete + commenced = "Started", -- message shown when task starts + completed = "Completed", -- message shown when task completes + }, + fmt = { + task = function(task_name, message, percentage) + if task_name == "diagnostics" then + return false + end + return string.format( + "%s%s [%s]", + message, + percentage and string.format(" (%s%%)", percentage) or "", + task_name + ) + end, + }, + --sources = { -- Sources to configure + --["null-ls"] = { -- Name of source + --ignore = true, -- Ignore notifications from this source + --}, + --}, + debug = { + logging = false, -- whether to enable logging, for debugging + strict = false, -- whether to interpret LSP strictly + }, +}) |
