Revert "nvim: Switch to using toggleterm instead of floaterm"
This reverts commit 7ef8054d41
.
This commit is contained in:
parent
91cc5cef03
commit
1e55c5d336
3 changed files with 13 additions and 9 deletions
11
nvim/.config/nvim/lua/modules/floaterm.lua
Normal file
11
nvim/.config/nvim/lua/modules/floaterm.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
local remap = vim.api.nvim_set_keymap
|
||||
|
||||
vim.g.floaterm_open_in_root = 0
|
||||
vim.g.floaterm_position = 'center'
|
||||
vim.g.floaterm_width = 0.8
|
||||
vim.g.floaterm_height = 0.8
|
||||
vim.g.floaterm_winblend = 0
|
||||
vim.g.floaterm_borderchars = {'─', '│', '─', '│', '╭', '╮', '╯', '╰'}
|
||||
|
||||
remap('n', '<C-z>', ':FloatermToggle<Enter>', { noremap = true, silent = true })
|
||||
remap('t', '<C-z>', '<C-\\><C-n>:FloatermToggle<Enter>', { noremap = true, silent = true })
|
|
@ -1,7 +0,0 @@
|
|||
require"toggleterm".setup{
|
||||
size = 25,
|
||||
open_mapping = [[<M-a>]],
|
||||
shade_filetypes = {},
|
||||
shade_terminals = true,
|
||||
persist_size = true,
|
||||
}
|
|
@ -106,8 +106,8 @@ local init = function ()
|
|||
use 'christoomey/vim-system-copy'
|
||||
-- Toggle terminal
|
||||
use {
|
||||
'akinsho/nvim-toggleterm.lua',
|
||||
config = "require('modules.nvim-toggleterm')"
|
||||
'voldikss/vim-floaterm',
|
||||
config = "require('modules.floaterm')"
|
||||
}
|
||||
use 'lambdalisue/edita.vim'
|
||||
-- Take care of sudo
|
||||
|
|
Loading…
Reference in a new issue