nvim: Remove line number from terminal buffers

This commit is contained in:
Marty Oehme 2023-02-28 11:21:39 +01:00
parent 70ccf5fa55
commit 1b69f57146
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -25,3 +25,9 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
desc = "Fix neovim sizing issues if opening same time as alacritty",
group = vim.api.nvim_create_augroup('alacritty_fixsize', { clear = true })
})
-- remove line numbers from terminal buffers
vim.api.nvim_create_autocmd({ "TermOpen" }, {
pattern = '*',
command = 'setlocal nonumber norelativenumber'
})