From 40ad835130f9e84375c2e1daf07f34cc889f4866 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 28 Aug 2024 06:35:04 -0400 Subject: [PATCH] feat: add blinky cursor utility module --- lua/config/options.lua | 20 ++++++++++---------- lua/utils/blinky.lua | 13 +++++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 lua/utils/blinky.lua diff --git a/lua/config/options.lua b/lua/config/options.lua index eac241a..1854925 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -31,15 +31,15 @@ vim.g.usewakatime = true --- @type boolean Options: vim.g.usehardtime = false --- @type boolean Options: vim.g.useimage = true --- @type boolean Options: --- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ USER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -vim.o.background = "dark" --- @type string Options: -vim.g.DashboardHeaderColor = "#88fc9a" --- @type string Options: [hex color] +-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ COLOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +-- Background color +vim.o.background = "dark" --- @type string Options: +-- Dashboard header color +vim.g.DashboardHeaderColor = "#88fc9a" --- @type string Options: [hex color] +-- Disable Transparency +vim.g.disable_transparency = true --- @type boolean Options: --- BLINKY CURSOR -vim.opt.guicursor = { - "n-v-c:block-Cursor/lCursor", -- Block cursor in normal, visual, and command modes - "i:ver25-blinkwait700-blinkoff400-blinkon250-Cursor/lCursor", -- Blinking vertical line in insert mode - "r-cr-o:hor20-Cursor/lCursor", -- Horizontal line cursor in replace, command-line replace, and operator-pending modes - "a:blinkwait700-blinkoff400-blinkon250", -- Global blinking settings for all modes -} +-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ BLINKY CURSOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +-- Setup the blinky cursor +require("utils.blinky").enable() -- stylua: ignore end diff --git a/lua/utils/blinky.lua b/lua/utils/blinky.lua new file mode 100644 index 0000000..8b9792f --- /dev/null +++ b/lua/utils/blinky.lua @@ -0,0 +1,13 @@ +local M = {} + +-- Function to set up blinky cursor +function M.enable() + vim.opt.guicursor = { + "n-v-c:block-Cursor/lCursor", -- Block cursor in normal, visual, and command modes + "i:ver25-blinkwait700-blinkoff400-blinkon250-Cursor/lCursor", -- Blinking vertical line in insert mode + "r-cr-o:hor20-Cursor/lCursor", -- Horizontal line cursor in replace, command-line replace, and operator-pending modes + "a:blinkwait700-blinkoff400-blinkon250", -- Global blinking settings for all modes + } +end + +return M