nixos/init.lua

41 lines
1.1 KiB
Lua
Raw Normal View History

-- 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})
-- 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"}
display = {
"NvimNotify"
}
}