mirror of
https://github.com/arkorty/Neolite.git
synced 2026-03-18 00:57:12 +00:00
Changes to be committed:
- Change toggleterm direction to horizontal - Add a function to get size of the terminal based on the direction
This commit is contained in:
@@ -59,10 +59,17 @@ local plugins = {
|
|||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
version = "*",
|
version = "*",
|
||||||
opts = {
|
opts = {
|
||||||
|
size = function(term)
|
||||||
|
if term.direction == "horizontal" then
|
||||||
|
return 24
|
||||||
|
elseif term.direction == "vertical" then
|
||||||
|
return vim.o.columns * 0.4
|
||||||
|
end
|
||||||
|
end,
|
||||||
open_mapping = [[<C-\>]],
|
open_mapping = [[<C-\>]],
|
||||||
hide_numbers = true,
|
hide_numbers = true,
|
||||||
start_in_insert = true,
|
start_in_insert = true,
|
||||||
direction = "tab",
|
direction = "horizontal",
|
||||||
close_on_exit = true,
|
close_on_exit = true,
|
||||||
shell = vim.o.shell,
|
shell = vim.o.shell,
|
||||||
float_opts = {
|
float_opts = {
|
||||||
|
|||||||
Reference in New Issue
Block a user