add autocmd to highlight trailing whitespace

This commit is contained in:
Akos Horvath 2023-08-18 19:32:46 +02:00
parent 415f88a10d
commit e9d4d95144

View File

@ -254,11 +254,16 @@ mason_lspconfig.setup_handlers {
-- Turn on lsp status information -- Turn on lsp status information
require('fidget').setup() require('fidget').setup()
-- vim.g.coq_settings = { -- highlight trailing whitespace
-- auto_start = true, vim.cmd([[
-- } autocmd VimEnter * autocmd WinEnter * let w:created=1
-- autocmd VimEnter * let w:created=1
-- vim.cmd([[COQnow -s]]) 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 hop = require('hop')
local directions = require('hop.hint').HintDirection local directions = require('hop.hint').HintDirection