From 74101ff4b6044b5825a4528807af5c46b9a57342 Mon Sep 17 00:00:00 2001 From: anbit Date: Wed, 26 Jun 2024 13:48:23 +0200 Subject: [PATCH] Configure toggleterm --- init.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/init.lua b/init.lua index 44daae02..aa65ab25 100644 --- a/init.lua +++ b/init.lua @@ -341,6 +341,31 @@ require('lazy').setup({ -- after the plugin has been loaded: -- config = function() ... end + { + 'akinsho/toggleterm.nvim', + version = '*', + opts = { + size = 20, + open_mapping = [[]], + shade_terminals = true, + auto_scroll = true, + shade_filetypes = {}, + persist_mode = true, + direction = 'float', + shell = vim.o.shell, + float_opts = { + border = 'curved', + winblend = 3, + title_pos = 'left', + }, + winbar = { + enabled = false, + name_formatter = function(term) + return term.name .. '@' .. term.dir .. '/' + end, + }, + }, + }, { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter'