diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-02-22 21:27:01 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-02-22 21:27:01 +0100 |
| commit | d088abb464c661cfcf456db9b955d8f0054c39c2 (patch) | |
| tree | e0e61404fb4f53737df1cc018496c5de3c88a7c4 /lua/plugins | |
| parent | 234d94a3613083eb478457eb800dace438d0df3c (diff) | |
| download | nvim-conf-d088abb464c661cfcf456db9b955d8f0054c39c2.tar.gz nvim-conf-d088abb464c661cfcf456db9b955d8f0054c39c2.zip | |
feat: add for tailwind more config for cursor
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/gitsigns.lua | 1 | ||||
| -rw-r--r-- | lua/plugins/smooth-cursor.lua | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 88228e4..f22c1ac 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -6,6 +6,7 @@ return { config = function() local gitsigns = require "gitsigns" gitsigns.setup { + signcolumn = false, numhl = true, trouble = false, on_attach = function(bufnr) 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, +} |