diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-07-11 05:12:18 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-07-11 05:12:18 -0300 |
| commit | 1fd0af14d592d612c2aaab7717c04c8806ba3daa (patch) | |
| tree | 46aa59ff785305fcc05209091aecf64ca89e05fb /lua/plugins/smooth-cursor.lua.n | |
| parent | fb448577edebb1b093e6cc097c201151385986f8 (diff) | |
| download | nvim-conf-1fd0af14d592d612c2aaab7717c04c8806ba3daa.tar.gz nvim-conf-1fd0af14d592d612c2aaab7717c04c8806ba3daa.zip | |
Feat: Todo actulizado
Diffstat (limited to 'lua/plugins/smooth-cursor.lua.n')
| -rw-r--r-- | lua/plugins/smooth-cursor.lua.n | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/plugins/smooth-cursor.lua.n b/lua/plugins/smooth-cursor.lua.n new file mode 100644 index 0000000..71fe431 --- /dev/null +++ b/lua/plugins/smooth-cursor.lua.n @@ -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 == "\22" 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, +} |