From 5c6eebf9b5d08697a002b942959d7ff5374c6a68 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 11 Mar 2022 10:31:01 +0530 Subject: [PATCH] nvim: autocmd: Fix cursor shape on exiting nvim This is required when using foot. See related issue https://codeberg.org/dnkl/foot/issues/797 https://codeberg.org/dnkl/foot/issues/798 --- nvim/.config/nvim/lua/autocmd.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nvim/.config/nvim/lua/autocmd.lua b/nvim/.config/nvim/lua/autocmd.lua index 40e05a0..69a16e0 100644 --- a/nvim/.config/nvim/lua/autocmd.lua +++ b/nvim/.config/nvim/lua/autocmd.lua @@ -42,6 +42,13 @@ local aucmd_dict = { pattern = "*.log", command = ":AnsiEsc" } + }, + VimLeave = { + { + group = "custom_group", + pattern = "*", + command = "set guicursor=a:ver1-blinkon0" + } } }