make jk nav smoother in lazygit
This commit is contained in:
parent
8134cf81d5
commit
cad64591ce
|
@ -12,4 +12,20 @@ return -- nvim v0.8.0
|
|||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
init = function()
|
||||
--Terminal opt changes (so lazygit is a bit smoother)
|
||||
local function setTerminalModeVars(on)
|
||||
vim.opt.timeoutlen = on and 100 or 300
|
||||
end
|
||||
vim.api.nvim_create_autocmd({ "TermOpen" }, {
|
||||
callback = function()
|
||||
setTerminalModeVars(true)
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd({ "TermClose" }, {
|
||||
callback = function()
|
||||
setTerminalModeVars(false)
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue