fix(dashboard): fix icons

This commit is contained in:
Matt Leong 2021-11-05 15:26:10 -07:00
parent a195ca4b97
commit 1b7df448f5
4 changed files with 13 additions and 6 deletions

View file

@ -25,19 +25,19 @@ g.dashboard_session_directory = vim.fn.stdpath('data') .. '/sessions'
g.dashboard_custom_section = { g.dashboard_custom_section = {
find_file = { find_file = {
description = { icons.file .. ' Find File <leader>ff' }, description = { icons.file1 .. ' Find File <leader>ff' },
command = 'Telescope find_files', command = 'Telescope find_files',
}, },
file_explorer = { file_explorer = {
description = { ' File Manager <C-n> ' }, description = { icons.file2 .. ' File Manager <C-n> ' },
command = 'NvimTreeToggle', command = 'NvimTreeToggle',
}, },
find_string = { find_string = {
description = { ' Grep String <leader>fs' }, description = { icons.word .. ' Grep String <leader>fs' },
command = 'NvimTreeToggle', command = 'NvimTreeToggle',
}, },
last_session = { last_session = {
description = { ' Load session <leader>sl' }, description = { icons.clock .. ' Load session <leader>sl' },
command = 'lua vim.cmd(":silent RestoreSession")', command = 'lua vim.cmd(":silent RestoreSession")',
}, },
} }

View file

@ -27,15 +27,18 @@ g.nvim_tree_icons = {
}, },
} }
g.nvim_tree_respect_buf_cwd = 1
-- set up args -- set up args
local args = { local args = {
auto_close = true, auto_close = true,
diagnostics = { diagnostics = {
enable = true, enable = true,
}, },
update_cwd = true,
update_focused_file = { update_focused_file = {
enable = true, enable = true,
ignore_list = {}, update_cwd = true,
}, },
} }

View file

@ -22,6 +22,10 @@ local icons = {
flame = '', flame = '',
check = '', check = '',
trace = '', trace = '',
file1 = '',
file2 = '',
clock = '',
word = '',
git = { git = {
unstaged = '', unstaged = '',
staged = '', staged = '',

View file

@ -196,7 +196,7 @@ return packer.startup(function()
disable = vim.tbl_contains(user_plugins.disable, 'telescope'), disable = vim.tbl_contains(user_plugins.disable, 'telescope'),
}) })
-- session management -- session/project management
use({ use({
'glepnir/dashboard-nvim', 'glepnir/dashboard-nvim',
config = function() config = function()