From 129f5f633806909f595862a4dd2f0fc166c5e8de Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Wed, 3 Apr 2024 17:41:07 +0200 Subject: [PATCH] [neovim] set cursor back to underscore when nvim is closed --- nix/home/neovim/neovim.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/home/neovim/neovim.nix b/nix/home/neovim/neovim.nix index d99f8ce..ea66ecd 100644 --- a/nix/home/neovim/neovim.nix +++ b/nix/home/neovim/neovim.nix @@ -64,6 +64,14 @@ vim.opt.smartindent = true + -- vim leave function + vim.api.nvim_create_autocmd({ "VimLeave" }, { + callback = function() + vim.cmd('set guicursor=a:hor20-Cursor/lCursor') + end, + }) + + -- load plugins -- neo-tree require("neo-tree").setup({