commit 18b9e6920aaeb7b0d89a96095a2c393988cae9d6
parent cb231f9febf9fd19bca52a5a071a91297c71e3f5
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date: Mon, 25 Jul 2022 09:57:40 +0200
Fix wrong autocmd call
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/init.lua b/init.lua
@@ -79,9 +79,8 @@ vim.g.mapleader = " "
vim.g.maplocalleader = "&"
vim.api.nvim_create_autocmd("TextYankPost", {
- silent = true,
callback = function()
- vim.highlight.on_yank { higroup = "Visual", timeout = 250 }
+ pcall(vim.highlight.on_yank, { higroup = "Visual", timeout = 250 })
end
})
vim.cmd [[language en_US.utf8]]