add autocmd to highlight trailing whitespace
This commit is contained in:
parent
415f88a10d
commit
e9d4d95144
15
init.lua
15
init.lua
@ -254,11 +254,16 @@ mason_lspconfig.setup_handlers {
|
||||
-- Turn on lsp status information
|
||||
require('fidget').setup()
|
||||
|
||||
-- vim.g.coq_settings = {
|
||||
-- auto_start = true,
|
||||
-- }
|
||||
--
|
||||
-- vim.cmd([[COQnow -s]])
|
||||
-- highlight trailing whitespace
|
||||
vim.cmd([[
|
||||
autocmd VimEnter * autocmd WinEnter * let w:created=1
|
||||
autocmd VimEnter * let w:created=1
|
||||
highlight WhitespaceEOL ctermbg=red ctermfg=white guibg=#592929
|
||||
autocmd BufWritePost *
|
||||
\ if !exists('w:created') | call matchadd('WhitespaceEOL', '\s\+$') | endif
|
||||
call matchadd('WhitespaceEOL', '\s\+$')
|
||||
]])
|
||||
|
||||
|
||||
local hop = require('hop')
|
||||
local directions = require('hop.hint').HintDirection
|
||||
|
Loading…
x
Reference in New Issue
Block a user