🧙 Major Restructuring Update
- Plugins are now properly organized into separate folders. - General configurations are also now organized by category into folders. - Now using lazyvim-defined plugins whenever possible for a more consistent and clean experience. - Duplicate manual plugin definitions were removed. - Extensive testing has been performed to ensure config works on fresh installs and a variety of systems. - Further slimming of manual plugins and an updated dependency list is forthcoming.
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- ------------------------------- ToggleTerm ----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
return {
|
||||
"akinsho/toggleterm.nvim",
|
||||
version = false,
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("toggleterm").setup({
|
||||
-- size can be a number or function which is passed the current terminal
|
||||
size = function(term)
|
||||
if term.direction == "horizontal" then
|
||||
return 10
|
||||
elseif term.direction == "vertical" then
|
||||
return vim.o.columns * 0.4
|
||||
end
|
||||
end,
|
||||
open_mapping = [[<c-\>]],
|
||||
hide_numbers = true,
|
||||
autochdir = true,
|
||||
shade_terminals = false,
|
||||
start_in_insert = true,
|
||||
insert_mappings = true,
|
||||
terminal_mappings = true,
|
||||
persist_size = true,
|
||||
persist_mode = true,
|
||||
direction = "horizontal",
|
||||
close_on_exit = true,
|
||||
shell = vim.o.shell,
|
||||
auto_scroll = true,
|
||||
float_opts = {
|
||||
border = "curved",
|
||||
winblend = 3,
|
||||
title_pos = "left",
|
||||
},
|
||||
winbar = {
|
||||
enabled = true,
|
||||
name_formatter = function(term) -- term: Terminal
|
||||
return term.name
|
||||
end,
|
||||
},
|
||||
})
|
||||
-- Keybinds
|
||||
vim.api.nvim_set_keymap(
|
||||
"n",
|
||||
"<c-/>",
|
||||
":ToggleTerm<cr>",
|
||||
{ noremap = true, desc = " Open Terminal" }
|
||||
)
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user