Remove various autocommands

This commit is contained in:
Sonny Bakker 2022-12-03 19:27:59 +01:00
parent ff63e93336
commit 1c59ba439f
3 changed files with 1 additions and 25 deletions

View file

@ -11,30 +11,6 @@ vim.api.nvim_create_autocmd('Syntax', {
desc = 'Open folds by default',
})
--color trailing spaces with red color
vim.cmd('highlight ExtraWhitespace ctermbg=green guibg=green')
vim.cmd('match ExtraWhitespace /s+$/')
vim.api.nvim_create_autocmd('BufWinEnter', {
pattern = "*",
command = [[:match ExtraWhitespace /s+$/]],
})
vim.api.nvim_create_autocmd('InsertEnter', {
pattern = "*",
command = [[:match ExtraWhitespace /s+%#@<!$/]],
})
vim.api.nvim_create_autocmd('InsertLeave', {
pattern = "*",
command = [[:match ExtraWhitespace /s+$/]],
})
vim.api.nvim_create_autocmd('BufWinLeave', {
pattern = "*",
command = [[:call clearmatches()]],
})
vim.api.nvim_create_autocmd('Filetype', {
pattern = 'TelescopeResults',
command = [[:setlocal nofoldenable]],