Added :terminal specific config

This commit is contained in:
agryphus 2023-05-05 01:43:37 -04:00
parent f2ff7bda11
commit e4628d8db8

View file

@ -15,3 +15,15 @@ vim.opt.wrap = false
vim.opt.scrolloff = 8
vim.opt.signcolumn = "auto"
vim.o.shell = "/usr/bin/zsh"
-- Local settings for when in :terminal mode
-- I don't believe this functionality has been ported to lua.
vim.cmd([[
function! TerminalSettings()
setlocal nonumber norelativenumber
setlocal scrolloff=0
endfunction
autocmd TermOpen * call TerminalSettings()
]])