nvim: Switch to using toggleterm instead of floaterm
This commit is contained in:
parent
dde738d953
commit
7ef8054d41
3 changed files with 9 additions and 13 deletions
|
@ -1,11 +0,0 @@
|
||||||
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 })
|
|
7
nvim/.config/nvim/lua/modules/nvim-toggleterm.lua
Normal file
7
nvim/.config/nvim/lua/modules/nvim-toggleterm.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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'
|
use 'christoomey/vim-system-copy'
|
||||||
-- Toggle terminal
|
-- Toggle terminal
|
||||||
use {
|
use {
|
||||||
'voldikss/vim-floaterm',
|
'akinsho/nvim-toggleterm.lua',
|
||||||
config = "require('modules.floaterm')"
|
config = "require('modules.nvim-toggleterm')"
|
||||||
}
|
}
|
||||||
use 'lambdalisue/edita.vim'
|
use 'lambdalisue/edita.vim'
|
||||||
-- Take care of sudo
|
-- Take care of sudo
|
||||||
|
|
Loading…
Reference in a new issue