From 9f955146515b789693f3e3c9709a1044a2d34d47 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 17 Mar 2021 03:30:03 -0400 Subject: updates --- README.md | 1 + lua/nv-nvimtree/init.lua | 1 + vimscript/functions.vim | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/README.md b/README.md index c14239a6..770162d6 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ $HOME/.config/nvim/lua/nv-vscode/init.vim - formatting using efm server for prettier/eslint - snippet support - learn what opt is +- nvimtree dots instead of stars **LOW PRIORITY** - redo barbar highlight groups diff --git a/lua/nv-nvimtree/init.lua b/lua/nv-nvimtree/init.lua index ab39ab2d..fc5e0d24 100644 --- a/lua/nv-nvimtree/init.lua +++ b/lua/nv-nvimtree/init.lua @@ -9,6 +9,7 @@ let g:nvim_tree_show_icons = { \ 'folders': 1, \ 'files': 1, \ } + "If 0, do not show the icons for one of 'git' 'folder' and 'files' "1 by default, notice that if 'files' is 1, it will only display "if nvim-web-devicons is installed and on your runtimepath ]] diff --git a/vimscript/functions.vim b/vimscript/functions.vim index 6f869935..166c0959 100644 --- a/vimscript/functions.vim +++ b/vimscript/functions.vim @@ -23,3 +23,23 @@ command! ResetHunk lua require 'nv-utils'.reset_hunk() command! ResetBuffer lua require 'nv-utils'.reset_buffer() command! PreviewHunk lua require 'nv-utils'.preview_hunk() command! BlameLine lua require 'nv-utils'.blame_line() + +" TODO this really shouldn't be here +let g:nvim_tree_icons = { + \ 'default': '', + \ 'symlink': '', + \ 'git': { + \ 'unstaged': "✗", + \ 'staged': "✓", + \ 'unmerged': "", + \ 'renamed': "➜", + \ 'untracked': "" + \ }, + \ 'folder': { + \ 'default': "", + \ 'open': "", + \ 'empty': "", + \ 'empty_open': "", + \ 'symlink': "", + \ } + \ } -- cgit v1.2.3