m00qek / baleia.nvim

Colorize text with ANSI escape sequences (8, 16, 256 or TrueColor)
138 stars 5 forks source link

README suggested modified quickfix results in unable to close vim #21

Closed SevereOverfl0w closed 5 months ago

SevereOverfl0w commented 7 months ago
let s:baleia = luaeval("require('baleia').setup { }")
autocmd BufReadPost quickfix setlocal modifiable
  \ | silent call g:baleia.once(bufnr('%'))
  \ | setlocal nomodifiable

doesn't seem quite right. Inspired by code in neomake, I think it should actually be

let s:baleia = luaeval("require('baleia').setup { }")
autocmd BufReadPost quickfix setlocal modifiable
  \ | silent call g:baleia.once(bufnr('%'))
  \ | setlocal nomodifiable nomodified

Adding undolevels=-1 might also improve performance.

m00qek commented 5 months ago

I've changed it to also set nomodified