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

@ -1,4 +1,3 @@
--vim:set ts=2 sw=2 et:
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
require('options')

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]],

View file

@ -49,6 +49,7 @@ vim.o.lbr = true
--default Colors for CursorLine
vim.o.cursorline = true
-- theme related
vim.o.termguicolors = true
vim.o.background = 'light'