From aa766faff156fc0d5a89c0f9c645f94d7f2da3ac Mon Sep 17 00:00:00 2001 From: Andrew Conlin Date: Thu, 1 Aug 2024 16:29:20 +0100 Subject: [PATCH] [2024-08-01] Add autocommand to reset cursor from nvim -> alacritty --- nvim/lua/init.lua | 5 +++++ nvim/lua/plugins/feline.lua | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim/lua/init.lua b/nvim/lua/init.lua index fc535e8..dcfb7d8 100644 --- a/nvim/lua/init.lua +++ b/nvim/lua/init.lua @@ -21,3 +21,8 @@ vim.diagnostic.config({ } }) --vim.api.nvim_set_hl(0,"DiagnosticUnderlineWarn",{undercurl=true,sp='DiagnosticWarn'}) +vim.api.nvim_create_autocmd("ExitPre", { + group = vim.api.nvim_create_augroup("Exit", { clear = true }), + command = "set guicursor=a:ver90-blinkwait250-blinkoff250-blinkon250", + desc = "Set cursor back to beam when leaving Neovim." +}) diff --git a/nvim/lua/plugins/feline.lua b/nvim/lua/plugins/feline.lua index 2b69f15..0b28798 100644 --- a/nvim/lua/plugins/feline.lua +++ b/nvim/lua/plugins/feline.lua @@ -136,7 +136,7 @@ win_components.active[3][3] = { } } win_components.active[3][4] = { - provider = 'scroll_bar', + provider = 'scroll_bar' } win_config.components = win_components win_config.disable = { filetypes = { '^neo[-]tree$' } }