Skip to content

Commit a054db4

Browse files
committed
fix: documentation and error messages
1 parent d8913d1 commit a054db4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Install with [vim-plug](https://github.com/junegunn/vim-plug):
1515
```vim
1616
" requires
1717
Plug 'kyazdani42/nvim-web-devicons' " for file icons
18+
Plug 'tami5/sqlite.lua' " for git integration
1819
Plug 'kyazdani42/nvim-tree.lua'
1920
```
2021

@@ -23,7 +24,10 @@ Install with [packer](https://github.com/wbthomason/packer.nvim):
2324
```lua
2425
use {
2526
'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+
},
2731
config = function() require'nvim-tree'.setup {} end
2832
}
2933
```

lua/nvim-tree/git/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end
6666
local function check_sqlite()
6767
local has_sqlite = pcall(require, 'sqlite')
6868
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)"
7070
require'nvim-tree.utils'.echo_warning(info)
7171
M.config.enable = false
7272
end

0 commit comments

Comments
 (0)