diff --git a/configs/nvim/lua/plugin/appearance/fidget.lua b/configs/nvim/lua/plugin/appearance/fidget.lua index d2ed500..695fe34 100644 --- a/configs/nvim/lua/plugin/appearance/fidget.lua +++ b/configs/nvim/lua/plugin/appearance/fidget.lua @@ -2,13 +2,9 @@ local registry = require('lib.registry') registry.install { 'j-hui/fidget.nvim', - tag = "legacy", + tag = "v1.2.0", lazy = true, config = function () - require('fidget').setup { - text = { - spinner = 'dots' - } - } + require('fidget').setup {} end } diff --git a/configs/nvim/lua/plugin/language/ios.lua b/configs/nvim/lua/plugin/language/ios.lua index ec02fc4..e20db44 100644 --- a/configs/nvim/lua/plugin/language/ios.lua +++ b/configs/nvim/lua/plugin/language/ios.lua @@ -1,6 +1,7 @@ local registry = require('lib.registry') local bindings = require('lib.bindings') +local progress_handle registry.install { 'wojciech-kulik/xcodebuild.nvim', requires = { @@ -26,6 +27,37 @@ registry.install { require('xcodebuild').setup { code_coverage = { enabled = true + }, + logs = { + auto_open_on_success_build = false, + auto_focus = false, + + notify = function (message, severity) + if progress_handle then + progress_handle.message = message + progress_handle:finish() + progress_handle = nil + else + vim.notify(message, severity) + end + end, + notify_progress = function (message) + local progress = prequire('fidget.progress') + + if not progress then + vim.cmd("echo '" .. message .. "'") + return + end + + if progress_handle then + progress_handle.message = message + else + progress_handle = progress.handle.create { + message = message, + lsp_client = { name = 'xcodebuild' } + } + end + end } }