summaryrefslogtreecommitdiff
path: root/lv-config.lua
diff options
context:
space:
mode:
authorsai nivas mangu <[email protected]>2021-06-28 18:34:44 +0530
committerGitHub <[email protected]>2021-06-28 09:04:44 -0400
commit54edde8e1e290166a2d674d537c1eeb3583652a1 (patch)
tree6e1c763491ec972ff4f3d270277eabedc94cd681 /lv-config.lua
parent1d4f66cb9a309ac49f965f489a9dc5f6173305a0 (diff)
galaxyline themes for gruvbox and nvcode, restoring cursor shape (#543)
* Restoring cursor shape for users with non-block cursors. * Galaxyline themes for Gruvbox and NVCode colorschemes.
Diffstat (limited to 'lv-config.lua')
-rw-r--r--lv-config.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/lv-config.lua b/lv-config.lua
index 48d71d3b..af9c7e47 100644
--- a/lv-config.lua
+++ b/lv-config.lua
@@ -78,3 +78,16 @@ O.lang.go.autoformat = true
-- Turn off cursorline
-- O.cursorline = false
+
+-- Neovim turns the default cursor to 'Block'
+-- when switched back into terminal.
+-- This below line fixes that. Uncomment if needed.
+
+-- vim.cmd('autocmd VimLeave,VimSuspend * set guicursor=a:ver90') -- Beam
+-- vim.cmd('autocmd VimLeave,VimSuspend * set guicursor=a:hor20') -- Underline
+
+-- NOTE: Above code doesn't take a value from the terminal's cursor and
+-- replace it. It hardcodes the cursor shape.
+-- And I think `ver` means vertical and `hor` means horizontal.
+-- The numbers didn't make a difference in alacritty. Please change
+-- the number to something that suits your needs if it looks weird.