mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
toto
This commit is contained in:
@@ -302,7 +302,12 @@ return {
|
||||
end, { desc = "review branch" })
|
||||
|
||||
vim.keymap.set("n", "<leader>ju", function()
|
||||
Snacks.terminal.toggle("jjui")
|
||||
local from = vim.api.nvim_buf_get_name(0)
|
||||
local cwd
|
||||
if from ~= "" then
|
||||
cwd = vim.fs.root(vim.fs.normalize(from), ".jj")
|
||||
end
|
||||
Snacks.terminal.toggle("jjui", { cwd = cwd })
|
||||
end, { desc = "jj ui" })
|
||||
end,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user