format with stylua

This commit is contained in:
2024-06-06 23:56:11 +02:00
parent d57eca961d
commit ae5b5fd06b
57 changed files with 994 additions and 989 deletions

View File

@ -3,7 +3,7 @@ return {
config = function()
function _G.set_terminal_keymaps(term)
local opts = { noremap = true }
if (term.cmd ~= 'lazygit') then
if term.cmd ~= 'lazygit' then
vim.api.nvim_buf_set_keymap(term.bufnr, 't', '<esc>', [[<C-\><C-n>]], opts)
end
vim.api.nvim_buf_set_keymap(term.bufnr, 't', 'jk', [[<C-\><C-n>]], opts)
@ -14,7 +14,7 @@ return {
end
require('toggleterm').setup({
on_open = set_terminal_keymaps
on_open = set_terminal_keymaps,
})
local Terminal = require('toggleterm.terminal').Terminal
@ -46,8 +46,8 @@ return {
function()
_lazygit_toggle()
end,
desc = 'LazyGit'
}
desc = 'LazyGit',
},
},
cmd = 'ToggleTerm',
}