Skip to content

Commit 844d345

Browse files
committed
fix: fixes #9, empty highlight group errors. also add missing plugins dir
1 parent 0c4a068 commit 844d345

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Example for packer:
1010
use {
1111
"nvim-neo-tree/neo-tree.nvim",
1212
branch = "v1.x",
13-
requires = { "MunifTanjim/nui.nvim" },
13+
requires = {
14+
"nvim-lua/plenary.nvim",
15+
"kyazdani42/nvim-web-devicons", -- not strictly required, but recommended
16+
"MunifTanjim/nui.nvim"
17+
},
1418
config = function ()
1519
require("neo-tree").setup()
1620
vim.cmd([[nnoremap \ :NeoTreeReveal<cr>]])

lua/neo-tree/ui/highlights.lua

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ local function create_highlight_group(hl_group_name, link_to_if_exists, backgrou
6161
end
6262
if foreground then
6363
cmd = cmd .. " guifg=#" .. foreground
64+
else
65+
cmd = cmd .. " guifg=NONE"
6466
end
6567
if gui then
6668
cmd = cmd .. " gui=" .. gui

plugin/neo-tree.vim

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if exists('g:loaded_neo_tree')
2+
finish
3+
endif
4+
let g:loaded_neo_tree = 1
5+
6+
command! NeoTreeClose lua require("neo-tree").close()
7+
command! NeoTreeFocus lua require("neo-tree").focus()
8+
command! NeoTreeShow lua require("neo-tree").show(nil, true)
9+
command! NeoTreeReveal lua require("neo-tree.sources.filesystem").reveal_current_file()

0 commit comments

Comments
 (0)