2022-08-15 15:20:15 +01:00
|
|
|
-- lualine config
|
|
|
|
require('lualine').setup{
|
|
|
|
options = {
|
2022-08-19 08:41:34 +01:00
|
|
|
icons_enabled = true,
|
2022-08-15 15:20:15 +01:00
|
|
|
theme = 'auto',
|
|
|
|
},
|
|
|
|
sections = {
|
|
|
|
-- lualine_x = {'encoding', 'fileformat', 'filetype'},
|
|
|
|
lualine_x = {'aerial', 'filetype'}
|
|
|
|
},
|
|
|
|
extensions = {'aerial', 'fugitive', 'fzf', 'nerdtree', 'toggleterm'}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- toggleterm config
|
|
|
|
require('toggleterm').setup{
|
2022-08-19 08:41:34 +01:00
|
|
|
open_mapping = [[,t]],
|
2022-08-15 15:20:15 +01:00
|
|
|
size = 20,
|
2022-09-13 17:44:34 +01:00
|
|
|
hide_numbers = true, -- hide the number column in toggleterm buffers
|
|
|
|
direction = 'float',
|
2022-08-15 15:20:15 +01:00
|
|
|
}
|
2022-09-13 17:44:34 +01:00
|
|
|
|
|
|
|
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})
|
2022-09-14 09:39:21 +01:00
|
|
|
|
|
|
|
-- aerial telescope integration
|
|
|
|
require('telescope').load_extension('aerial')
|
|
|
|
|
|
|
|
-- SnipRun config
|
|
|
|
require('sniprun').setup{
|
2022-09-14 15:03:06 +01:00
|
|
|
repl_enable = {"Python3_original"}
|
2022-09-14 09:39:21 +01:00
|
|
|
display = {
|
|
|
|
"NvimNotify"
|
|
|
|
}
|
|
|
|
}
|