Skip to content

Commit 9739ea5

Browse files
committed
Add toggle term back
1 parent 57e5488 commit 9739ea5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

init.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ vim.o.expandtab = true
169169
vim.o.smartindent = true
170170
vim.o.autoindent = true
171171

172+
-- terminal theme
173+
vim.o.termguicolors = false
174+
vim.cmd.colorscheme 'ansi'
175+
172176
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
173177
-- instead raise a dialog asking if you wish to save the current file(s)
174178
-- See `:help 'confirm'`
@@ -924,6 +928,7 @@ require('lazy').setup({
924928
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
925929
'folke/tokyonight.nvim',
926930
priority = 1000, -- Make sure to load this before all the other start plugins.
931+
enabled = false,
927932
config = function()
928933
---@diagnostic disable-next-line: missing-fields
929934
require('tokyonight').setup {
@@ -1014,6 +1019,21 @@ require('lazy').setup({
10141019
},
10151020
},
10161021
},
1022+
{
1023+
'akinsho/toggleterm.nvim',
1024+
version = '*',
1025+
opts = {
1026+
open_mapping = '<leader>r',
1027+
direction = 'vertical',
1028+
size = function(term)
1029+
if term.direction == 'horizontal' then
1030+
return vim.o.lines * 0.4
1031+
elseif term.direction == 'vertical' then
1032+
return vim.o.columns * 0.4
1033+
end
1034+
end,
1035+
},
1036+
},
10171037

10181038
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
10191039
-- init.lua. If you want these files, they are in the repository, so you can just download them and

0 commit comments

Comments
 (0)