From 0cc445b628205b976ff7b2eb26bcace015b9a1de Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 16 Sep 2022 03:54:22 -0500 Subject: [PATCH] feat(nvim): add smooth cursor --- .../primary/config/lua/plugins/plugins.lua | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index a5b25e81..e98a0d26 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -794,11 +794,39 @@ return packer.startup({ "segeljakt/vim-silicon", config = function() vim.g.silicon = { - theme = "Coldark-Dark" + theme = "Coldark-Dark", } end, }) + -- Nice sidebar cursor goodies + use({ + "gen740/SmoothCursor.nvim", + requires = { + "rebelot/kanagawa", + }, + config = function() + local kcolors = require("kanagawa.colors").setup({}) + vim.api.nvim_set_hl(0, "SmoothCursorCursor", { fg = kcolors.roninYellow }) + vim.api.nvim_set_hl(0, "SmoothCursorTrail", { fg = kcolors.autumnYellow }) + require("smoothcursor").setup({ + fancy = { + enable = true, + head = { cursor = "⯈", texthl = "SmoothCursorCursor", linehl = nil }, + body = { + { cursor = "", texthl = "SmoothCursorTrail" }, + { cursor = "", texthl = "SmoothCursorTrail" }, + { cursor = "●", texthl = "SmoothCursorTrail" }, + { cursor = "●", texthl = "SmoothCursorTrail" }, + { cursor = "•", texthl = "SmoothCursorTrail" }, + { cursor = ".", texthl = "SmoothCursorTrail" }, + { cursor = ".", texthl = "SmoothCursorTrail" }, + }, + }, + }) + end, + }) + -- Leave at end!!! -- Install and deploy packer plugins -- automatically