Chris 5 năm trước cách đây
mục cha
commit
9f95514651
3 tập tin đã thay đổi với 22 bổ sung0 xóa
  1. 1 0
      README.md
  2. 1 0
      lua/nv-nvimtree/init.lua
  3. 20 0
      vimscript/functions.vim

+ 1 - 0
README.md

@@ -47,6 +47,7 @@ $HOME/.config/nvim/lua/nv-vscode/init.vim
 - formatting using efm server for prettier/eslint
 - formatting using efm server for prettier/eslint
 - snippet support
 - snippet support
 - learn what opt is
 - learn what opt is
+- nvimtree dots instead of stars
 
 
 **LOW PRIORITY**
 **LOW PRIORITY**
 - redo barbar highlight groups
 - redo barbar highlight groups

+ 1 - 0
lua/nv-nvimtree/init.lua

@@ -9,6 +9,7 @@ let g:nvim_tree_show_icons = {
     \ 'folders': 1,
     \ 'folders': 1,
     \ 'files': 1,
     \ 'files': 1,
     \ }
     \ }
+
 "If 0, do not show the icons for one of 'git' 'folder' and 'files'
 "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
 "1 by default, notice that if 'files' is 1, it will only display
 "if nvim-web-devicons is installed and on your runtimepath ]]
 "if nvim-web-devicons is installed and on your runtimepath ]]

+ 20 - 0
vimscript/functions.vim

@@ -23,3 +23,23 @@ command! ResetHunk lua require 'nv-utils'.reset_hunk()
 command! ResetBuffer lua require 'nv-utils'.reset_buffer()
 command! ResetBuffer lua require 'nv-utils'.reset_buffer()
 command! PreviewHunk lua require 'nv-utils'.preview_hunk()
 command! PreviewHunk lua require 'nv-utils'.preview_hunk()
 command! BlameLine lua require 'nv-utils'.blame_line()
 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': "",
+    \   }
+    \ }