aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/fidget.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-02-22 11:48:46 +0200
committersrdusr <trevorgray@srdusr.com>2023-02-22 11:48:46 +0200
commit59d17033cb3600b6fb5dabfd230583290b4b8249 (patch)
tree353bb0906491ef651b3b3bf69fda3bdada2855b9 /.config/nvim/lua/plugins/fidget.lua
parentc106f64c0055741ac4be2e9e212f7e64f32c4f78 (diff)
parentfe82974e85098b87ba23b728a0fb6fb4fbad24f8 (diff)
downloaddotfiles-59d17033cb3600b6fb5dabfd230583290b4b8249.tar.gz
dotfiles-59d17033cb3600b6fb5dabfd230583290b4b8249.zip
Merge commit '84a17551931ced87f074116108ef59600a909cb0'
Diffstat (limited to '.config/nvim/lua/plugins/fidget.lua')
-rw-r--r--.config/nvim/lua/plugins/fidget.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/fidget.lua b/.config/nvim/lua/plugins/fidget.lua
new file mode 100644
index 0000000..0f56a6b
--- /dev/null
+++ b/.config/nvim/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
+ },
+})