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')
|
2022-09-15 10:08:51 +01:00
|
|
|
require('telescope').load_extension('notify')
|
|
|
|
|
|
|
|
-- Set nvim-notify as default for notifications
|
|
|
|
vim.notify = require("notify")
|
2022-09-14 09:39:21 +01:00
|
|
|
|
|
|
|
-- SnipRun config
|
|
|
|
require('sniprun').setup{
|
2022-09-14 15:29:31 +01:00
|
|
|
selected_interpreters = { 'Python3_fifo' },
|
|
|
|
repl_enable = {'Python3_fifo'},
|
2022-09-14 09:39:21 +01:00
|
|
|
display = {
|
|
|
|
"NvimNotify"
|
2022-09-14 15:29:31 +01:00
|
|
|
},
|
2022-09-14 09:39:21 +01:00
|
|
|
}
|