feat(nvim): add smoothscrolling to the options if nvim nightly is present

This commit is contained in:
sankalp committed 2024-03-11 07:15:59 +05:45
1 parent 8337a7847c
commit 34979e6b29
44 files changed
+243 -126

No files matched your search

@@ -0,0 +1,24 @@
return {
"nvimdev/dashboard-nvim",
opts = function(_, opts)
vim.api.nvim_create_autocmd("TabNewEntered", { command = "Dashboard" })
local logo = [[

████ ██████ █████ ██
███████████ █████ 
█████████ ███████████████████ ███ ███████████
█████████ ███ █████████████ █████ ██████████████
█████████ ██████████ █████████ █████ █████ ████ █████
███████████ ███ ███ █████████ █████ █████ ████ █████
██████ █████████████████████ ████ █████ █████ ████ ██████
]]
logo = string.rep("\n", 8) .. logo .. "\n\n"
opts.config.header = vim.split(logo, "\n")
return opts
end,
keys = {
{ "<leader>fd", "<cmd>Dash<cr>", desc = "Dashboard" },
},
}