File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Install with [vim-plug](https://github.com/junegunn/vim-plug):
15
15
``` vim
16
16
" requires
17
17
Plug 'kyazdani42/nvim-web-devicons' " for file icons
18
+ Plug 'tami5/sqlite.lua' " for git integration
18
19
Plug 'kyazdani42/nvim-tree.lua'
19
20
```
20
21
@@ -23,7 +24,10 @@ Install with [packer](https://github.com/wbthomason/packer.nvim):
23
24
``` lua
24
25
use {
25
26
' kyazdani42/nvim-tree.lua' ,
26
- requires = ' kyazdani42/nvim-web-devicons' ,
27
+ requires = {
28
+ ' kyazdani42/nvim-web-devicons' , -- optional, for file icon
29
+ ' tami5/sqlite.lua' , -- optional, for git integration
30
+ },
27
31
config = function () require ' nvim-tree' .setup {} end
28
32
}
29
33
```
Original file line number Diff line number Diff line change 66
66
local function check_sqlite ()
67
67
local has_sqlite = pcall (require , ' sqlite' )
68
68
if M .config .enable and not has_sqlite then
69
- local info = " [NvimTree] Git integration requires sqlite.lua to be installed (see :help nvim-tree- git)"
69
+ local info = " Git integration requires sqlite.lua to be installed (see :help nvim-tree. git)"
70
70
require ' nvim-tree.utils' .echo_warning (info )
71
71
M .config .enable = false
72
72
end
You can’t perform that action at this time.
0 commit comments