my demo first config lua

This commit is contained in:
2023-12-13 00:27:19 +03:00
commit 61e95391fb
268 changed files with 12847 additions and 0 deletions

View File

@@ -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,
}