feat(config): disable wrap and list chars on large buffers

This commit is contained in:
Nicolas Goudry 2024-06-06 07:55:10 +02:00
parent 4176bdcb8d
commit 888c7cf479
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44

View file

@ -1,6 +1,7 @@
{
# Adapted from AstroNvim and Reddit comment
# https://github.com/AstroNvim/astrocore/blob/v1.5.0/lua/astrocore/init.lua#L473-L486
# https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/_astrocore_autocmds.lua#L218-L238
# https://www.reddit.com/r/neovim/comments/z85s1l/comment/iyfrgvb/
autoGroups.large_buffer_detector = { };
autoCmd = [
@ -19,6 +20,8 @@
vim.cmd("LspStop")
vim.opt_local.foldmethod = "manual"
vim.opt_local.spell = false
vim.opt_local.wrap = true
vim.opt_local.list = false
end
end
'';