refactor(nvim): use float for toggleterm
This commit is contained in:
parent
036fdae354
commit
3adaeadd98
@ -769,15 +769,8 @@ return packer.startup({
|
|||||||
config = function()
|
config = function()
|
||||||
require("toggleterm").setup({
|
require("toggleterm").setup({
|
||||||
start_in_insert = false,
|
start_in_insert = false,
|
||||||
direction = "vertical",
|
direction = "float",
|
||||||
autochdir = true,
|
autochdir = true,
|
||||||
size = function(term)
|
|
||||||
if term.direction == "vertical" then
|
|
||||||
return vim.o.columns * 0.5
|
|
||||||
else
|
|
||||||
return 30
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
winbar = {
|
winbar = {
|
||||||
enable = true,
|
enable = true,
|
||||||
name_formatter = function(term) -- term: Terminal
|
name_formatter = function(term) -- term: Terminal
|
||||||
|
Loading…
Reference in New Issue
Block a user