30 lines
870 B
Lua
30 lines
870 B
Lua
-- lualine config
|
|
require('lualine').setup{
|
|
options = {
|
|
icons_enabled = true,
|
|
theme = 'auto',
|
|
},
|
|
sections = {
|
|
-- lualine_x = {'encoding', 'fileformat', 'filetype'},
|
|
lualine_x = {'aerial', 'filetype'}
|
|
},
|
|
extensions = {'aerial', 'fugitive', 'fzf', 'nerdtree', 'toggleterm'}
|
|
}
|
|
|
|
-- toggleterm config
|
|
require('toggleterm').setup{
|
|
open_mapping = [[,t]],
|
|
size = 20,
|
|
hide_numbers = true, -- hide the number column in toggleterm buffers
|
|
direction = 'float',
|
|
}
|
|
|
|
local Terminal = require('toggleterm.terminal').Terminal
|
|
local lazygit = Terminal:new({ cmd = "lazygit", hidden = true })
|
|
|
|
function _lazygit_toggle()
|
|
lazygit:toggle()
|
|
end
|
|
|
|
vim.api.nvim_set_keymap("n", ",g", "<cmd>lua _lazygit_toggle()<CR>", {noremap = true, silent = true})
|