replace dashboard with alpha.nvim (#816)

This commit is contained in:
siduck 2022-02-20 11:44:43 +05:30
parent c1e372e2cd
commit ceaf02e0bf
7 changed files with 95 additions and 66 deletions

View file

@ -63,7 +63,7 @@ M.plugins = {
bufferline = true, -- manage and preview opened buffers
colorizer = false, -- color RGB, HEX, CSS, NAME color codes
comment = true, -- easily (un)comment code, language aware
dashboard = false,
alpha = false, -- dashboard
better_escape = true, -- map to <ESC> with no lag
feline = true, -- statusline
gitsigns = true,
@ -95,9 +95,9 @@ M.plugins = {
-- hide, show on specific filetypes
hidden = {
"help",
"dashboard",
"NvimTree",
"terminal",
"alpha",
},
shown = {},
@ -182,14 +182,6 @@ M.mappings.plugins = {
toggle = "<leader>/",
},
dashboard = {
bookmarks = "<leader>bm",
new_file = "<leader>fn", -- basically create a new buffer
open = "<leader>db", -- open dashboard
session_load = "<leader>l",
session_save = "<leader>s",
},
-- map to <ESC> with no lag
better_escape = { -- <ESC> will still work
esc_insertmode = { "jk" }, -- multiple mappings allowed

View file

@ -140,16 +140,6 @@ M.comment = function()
map("v", m, ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())<CR>")
end
M.dashboard = function()
local m = plugin_maps.dashboard
map("n", m.bookmarks, ":DashboardJumpMarks <CR>")
map("n", m.new_file, ":DashboardNewFile <CR>")
map("n", m.open, ":Dashboard <CR>")
map("n", m.session_load, ":SessionLoad <CR>")
map("n", m.session_save, ":SessionSave <CR>")
end
M.lspconfig = function()
local m = plugin_maps.lspconfig