Skip to content

Commit

Permalink
feat(nvim): improve ios development experience
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jan 26, 2024
1 parent 438d0ca commit 671d5e2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
8 changes: 2 additions & 6 deletions configs/nvim/lua/plugin/appearance/fidget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
32 changes: 32 additions & 0 deletions configs/nvim/lua/plugin/language/ios.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local registry = require('lib.registry')
local bindings = require('lib.bindings')

local progress_handle
registry.install {
'wojciech-kulik/xcodebuild.nvim',
requires = {
Expand All @@ -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
}
}

Expand Down

0 comments on commit 671d5e2

Please sign in to comment.