neovim: Add toggleterm

This commit is contained in:
Peter Cai 2022-08-07 17:39:06 -04:00
parent 4388ee491d
commit cefce76d7a
3 changed files with 28 additions and 3 deletions

View File

@ -36,12 +36,13 @@ set syntax=on
" Show line numbers on non-toolbar buffers
fun! ShowNumberIfNecessary()
if &ft =~ 'neo-tree'
if &ft =~ 'neo-tree|toggleterm'
return
endif
setlocal nu
endfun
autocmd BufEnter * call ShowNumberIfNecessary()
autocmd TermOpen term://* setlocal nonumber
" Startup commands
autocmd UIEnter * Neotree

View File

@ -39,4 +39,18 @@ return require('packer').startup(function(use)
}
}) end,
}
-- Terminal
use {
"akinsho/toggleterm.nvim", tag = "v2.*",
config = function() require("toggleterm").setup({
open_mapping = [[<c-\>]],
persist_size = false,
shade_terminals = false,
hide_numbers = false,
winbar = {
enabled = false,
},
}) end,
}
end)

View File

@ -70,7 +70,7 @@ time([[try_loadstring definition]], false)
time([[Defining packer_plugins]], true)
_G.packer_plugins = {
["bufferline.nvim"] = {
config = { "\27LJ\2\nÄ\1\0\0\6\0\b\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\6\0005\3\4\0004\4\3\0005\5\3\0>\5\1\4=\4\5\3=\3\a\2B\0\2\1K\0\1\0\foptions\1\0\0\foffsets\1\0\1\20separator_style\nslant\1\0\4\14highlight\14Directory\rfiletype\rneo-tree\ttext\nFiles\15text_align\tleft\nsetup\15bufferline\frequire\0" },
config = { "\27LJ\2\nÄ\1\0\0\6\0\b\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\6\0005\3\4\0004\4\3\0005\5\3\0>\5\1\4=\4\5\3=\3\a\2B\0\2\1K\0\1\0\foptions\1\0\0\foffsets\1\0\1\20separator_style\nslant\1\0\4\rfiletype\rneo-tree\ttext\nFiles\15text_align\tleft\14highlight\14Directory\nsetup\15bufferline\frequire\0" },
loaded = true,
path = "/home/peter/.local/share/nvim/site/pack/packer/start/bufferline.nvim",
url = "https://github.com/akinsho/bufferline.nvim"
@ -109,13 +109,23 @@ _G.packer_plugins = {
loaded = true,
path = "/home/peter/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim"
},
["toggleterm.nvim"] = {
config = { "\27LJ\2\nš\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\vwinbar\1\0\1\fenabled\1\1\0\4\17hide_numbers\1\20shade_terminals\1\17persist_size\1\17open_mapping\n<c-\\>\nsetup\15toggleterm\frequire\0" },
loaded = true,
path = "/home/peter/.local/share/nvim/site/pack/packer/start/toggleterm.nvim",
url = "https://github.com/akinsho/toggleterm.nvim"
}
}
time([[Defining packer_plugins]], false)
-- Config for: toggleterm.nvim
time([[Config for toggleterm.nvim]], true)
try_loadstring("\27LJ\2\nš\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\vwinbar\1\0\1\fenabled\1\1\0\4\17hide_numbers\1\20shade_terminals\1\17persist_size\1\17open_mapping\n<c-\\>\nsetup\15toggleterm\frequire\0", "config", "toggleterm.nvim")
time([[Config for toggleterm.nvim]], false)
-- Config for: bufferline.nvim
time([[Config for bufferline.nvim]], true)
try_loadstring("\27LJ\2\nÄ\1\0\0\6\0\b\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\6\0005\3\4\0004\4\3\0005\5\3\0>\5\1\4=\4\5\3=\3\a\2B\0\2\1K\0\1\0\foptions\1\0\0\foffsets\1\0\1\20separator_style\nslant\1\0\4\14highlight\14Directory\rfiletype\rneo-tree\ttext\nFiles\15text_align\tleft\nsetup\15bufferline\frequire\0", "config", "bufferline.nvim")
try_loadstring("\27LJ\2\nÄ\1\0\0\6\0\b\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\6\0005\3\4\0004\4\3\0005\5\3\0>\5\1\4=\4\5\3=\3\a\2B\0\2\1K\0\1\0\foptions\1\0\0\foffsets\1\0\1\20separator_style\nslant\1\0\4\rfiletype\rneo-tree\ttext\nFiles\15text_align\tleft\14highlight\14Directory\nsetup\15bufferline\frequire\0", "config", "bufferline.nvim")
time([[Config for bufferline.nvim]], false)
if should_profile then save_profiles() end