added dashboard and web dev icons to nvim

This commit is contained in:
Nicolai Van der Storm 2023-10-24 12:51:53 +02:00
parent eec560c13a
commit 3d6977257e
Signed by: NicolaiVdS
GPG Key ID: CA53B34914EFD59B
3 changed files with 106 additions and 0 deletions

View File

@ -150,6 +150,21 @@
config = toLuaFile ./plugins/telescope.lua;
}
{
plugin = telescope-nvim;
config = toLuaFile ./plugins/telescope.lua;
}
{
plugin = dashboard-nvim;
config = toLuaFile ./plugins/dashboard.lua;
}
{
plugin = nvim-web-devicons;
config = toLuaFile ./plugins/nvim-web-devicons.lua;
}
];
extraLuaConfig = ''

View File

@ -0,0 +1,68 @@
local status, plugin = pcall(require, 'dashboard')
if not status then
print('Error with plugin: ', plugin)
return
end
plugin.setup({
theme = 'doom',
config = {
header = randomsplash(),
center = {
{
icon = '',
icon_hl = '@variable',
desc = 'Find File',
desc_hl = 'String',
key = 'f',
keymap = 'SPC ff',
key_hl = 'Number',
action = 'Telescope find_files'
},
{
icon = '',
icon_hl = '@variable',
desc = 'File Browser',
desc_hl = 'String',
key = 'd',
keymap = 'SPC dt',
key_hl = 'Number',
action = 'NvimTreeToggle'
},
{
icon = '󰚰 ',
icon_hl = '@variable',
desc = 'Update',
desc_hl = 'String',
key = 'u',
keymap = ':Lazy update',
key_hl = 'Number',
action = 'Lazy update'
},
{
icon = '',
icon_hl = '@variable',
desc = 'Transparency Toggle',
desc_hl = 'String',
key = 't',
keymap = 'SPC tt',
key_hl = 'Number',
action = 'TransparentToggle'
},
{
icon = '󱓥 ',
icon_hl = '@variable',
desc = 'Edit Neovim',
desc_hl = 'String',
key = 'e',
keymap = 'SPC en',
key_hl = 'Number',
action = 'lua edit_nvim()' -- Declared in functions.lua
},
},
footer = {
randomquote()
}
}
})

View File

@ -0,0 +1,23 @@
require('nvim-web-devicons').setup {
color_icons = true;
default = true;
strict = true;
override_by_filename = {
[".gitignore"] = {
icon = "",
color = "#f1502f",
name = "Gitignore"
}
};
override_by_extension = {
["log"] = {
icon = "",
color = "#81e043",
name = "Log"
}
};
}
require('nvim-web-devicons').get_icons()