mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
custom dart tabline
This commit is contained in:
parent
d7ae87e671
commit
9457c7436e
12 changed files with 424 additions and 51 deletions
|
|
@ -60,12 +60,12 @@ function M.revs()
|
|||
picker:close()
|
||||
if item then
|
||||
if not item.rev then
|
||||
Snacks.notify.warn('No branch or commit found', { title = 'Snacks Picker' })
|
||||
vim.notify.warn('No branch or commit found', { title = 'Snacks Picker' })
|
||||
return
|
||||
end
|
||||
local cmd = { 'jj', 'new', '-r', item.rev }
|
||||
Snacks.picker.util.cmd(cmd, function()
|
||||
Snacks.notify('Checking out revision: ' .. item.rev, { title = 'Snacks Picker' })
|
||||
vim.notify('Checking out revision: ' .. item.rev, { title = 'Snacks Picker' })
|
||||
vim.cmd.checktime()
|
||||
require('plugins.lib.session_jj').load()
|
||||
end, { cwd = item.cwd })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue