Remove various autocommands
This commit is contained in:
parent
ff63e93336
commit
1c59ba439f
3 changed files with 1 additions and 25 deletions
|
|
@ -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]],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue