aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/smooth-cursor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/smooth-cursor.lua')
-rw-r--r--lua/plugins/smooth-cursor.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/plugins/smooth-cursor.lua b/lua/plugins/smooth-cursor.lua
new file mode 100644
index 0000000..0deb2b5
--- /dev/null
+++ b/lua/plugins/smooth-cursor.lua
@@ -0,0 +1,32 @@
+return {
+ "gen740/SmoothCursor.nvim",
+ config = function()
+ require("smoothcursor").setup({cursor = ""})
+
+ vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#8a9baa" })
+
+ local autocmd = vim.api.nvim_create_autocmd
+
+ autocmd({ "ModeChanged" }, {
+ callback = function()
+ local current_mode = vim.fn.mode()
+ if current_mode == "n" then
+ vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#8a9baa" })
+ vim.fn.sign_define("smoothcursor", { text = "" })
+ elseif current_mode == "v" then
+ vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" })
+ vim.fn.sign_define("smoothcursor", { text = "" })
+ elseif current_mode == "V" then
+ vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" })
+ vim.fn.sign_define("smoothcursor", { text = "" })
+ elseif current_mode == "�" then
+ vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#bf616a" })
+ vim.fn.sign_define("smoothcursor", { text = "" })
+ elseif current_mode == "i" then
+ vim.api.nvim_set_hl(0, "SmoothCursor", { fg = "#668aab" })
+ vim.fn.sign_define("smoothcursor", { text = "" })
+ end
+ end,
+ })
+ end,
+}