added dashboard and web dev icons to nvim
This commit is contained in:
parent
eec560c13a
commit
3d6977257e
@ -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 = ''
|
||||
|
68
nix/users/base/neovim/plugins/dashboard.lua
Normal file
68
nix/users/base/neovim/plugins/dashboard.lua
Normal 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()
|
||||
}
|
||||
}
|
||||
})
|
23
nix/users/base/neovim/plugins/nvim-web-devicons.lua
Normal file
23
nix/users/base/neovim/plugins/nvim-web-devicons.lua
Normal 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()
|
Loading…
Reference in New Issue
Block a user