Remove various autocommands
This commit is contained in:
parent
ff63e93336
commit
1c59ba439f
3 changed files with 1 additions and 25 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
--vim:set ts=2 sw=2 et:
|
|
||||||
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||||
|
|
||||||
require('options')
|
require('options')
|
||||||
|
|
|
||||||
|
|
@ -11,30 +11,6 @@ vim.api.nvim_create_autocmd('Syntax', {
|
||||||
desc = 'Open folds by default',
|
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', {
|
vim.api.nvim_create_autocmd('Filetype', {
|
||||||
pattern = 'TelescopeResults',
|
pattern = 'TelescopeResults',
|
||||||
command = [[:setlocal nofoldenable]],
|
command = [[:setlocal nofoldenable]],
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ vim.o.lbr = true
|
||||||
--default Colors for CursorLine
|
--default Colors for CursorLine
|
||||||
vim.o.cursorline = true
|
vim.o.cursorline = true
|
||||||
|
|
||||||
|
-- theme related
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
vim.o.background = 'light'
|
vim.o.background = 'light'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue