Skip to content

Commit 4578fe9

Browse files
committed
fix(icons): replace obsolete Nerd Fonts icons nvim-neo-tree#909
Signed-off-by: Chaz Leong <[email protected]>
1 parent 80dc74d commit 4578fe9

File tree

7 files changed

+193
-103
lines changed

7 files changed

+193
-103
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
5555
use {
5656
"nvim-neo-tree/neo-tree.nvim",
5757
branch = "v2.x",
58-
requires = {
58+
requires = {
5959
"nvim-lua/plenary.nvim",
6060
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
6161
"MunifTanjim/nui.nvim",
@@ -74,12 +74,12 @@ Press `?` in the Neo-tree window to view the list of mappings.
7474
## Quickstart
7575

7676
#### Longer Example for Packer:
77-
77+
7878
```lua
7979
use {
8080
"nvim-neo-tree/neo-tree.nvim",
8181
branch = "v2.x",
82-
requires = {
82+
requires = {
8383
"nvim-lua/plenary.nvim",
8484
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
8585
"MunifTanjim/nui.nvim",
@@ -118,7 +118,7 @@ use {
118118
vim.fn.sign_define("DiagnosticSignInfo",
119119
{text = "", texthl = "DiagnosticSignInfo"})
120120
vim.fn.sign_define("DiagnosticSignHint",
121-
{text = "", texthl = "DiagnosticSignHint"})
121+
{text = "󰌵", texthl = "DiagnosticSignHint"})
122122
-- NOTE: this is changed from v1.x, which used the old style of highlight groups
123123
-- in the form "LspDiagnosticsSignWarning"
124124

@@ -129,7 +129,7 @@ use {
129129
enable_diagnostics = true,
130130
open_files_do_not_replace_types = { "terminal", "trouble", "qf" }, -- when opening files, do not use windows containing these filetypes or buftypes
131131
sort_case_insensitive = false, -- used when sorting files and directories in the tree
132-
sort_function = nil , -- use a custom function for sorting files and directories in the tree
132+
sort_function = nil , -- use a custom function for sorting files and directories in the tree
133133
-- sort_function = function (a,b)
134134
-- if a.type == b.type then
135135
-- return a.path > b.path
@@ -158,7 +158,7 @@ use {
158158
icon = {
159159
folder_closed = "",
160160
folder_open = "",
161-
folder_empty = "",
161+
folder_empty = "󰜌",
162162
-- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
163163
-- then these will never be used.
164164
default = "*",
@@ -179,11 +179,11 @@ use {
179179
added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name
180180
modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
181181
deleted = "",-- this can only be used in the git_status source
182-
renamed = "",-- this can only be used in the git_status source
182+
renamed = "󰁕",-- this can only be used in the git_status source
183183
-- Status type
184184
untracked = "",
185185
ignored = "",
186-
unstaged = "",
186+
unstaged = "󰄱",
187187
staged = "",
188188
conflict = "",
189189
}
@@ -201,9 +201,9 @@ use {
201201
nowait = true,
202202
},
203203
mappings = {
204-
["<space>"] = {
205-
"toggle_node",
206-
nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
204+
["<space>"] = {
205+
"toggle_node",
206+
nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
207207
},
208208
["<2-LeftMouse>"] = "open",
209209
["<cr>"] = "open",
@@ -223,7 +223,7 @@ use {
223223
-- ['C'] = 'close_all_subnodes',
224224
["z"] = "close_all_nodes",
225225
--["Z"] = "expand_all_nodes",
226-
["a"] = {
226+
["a"] = {
227227
"add",
228228
-- this command supports BASH style brace expansion ("x{a,b,c}" -> xa,xb,xc). see `:h neo-tree-file-actions` for details
229229
-- some commands may take optional config options, see `:h neo-tree-mappings` for details
@@ -355,7 +355,7 @@ See `:h neo-tree` for full documentation. You can also preview that online at
355355

356356
To see all of the default config options with commentary, you can view it online
357357
at [lua/neo-tree/defaults.lua](lua/neo-tree/defaults.lua). You can also paste it
358-
into a buffer after installing Neo-tree by running:
358+
into a buffer after installing Neo-tree by running:
359359

360360
```
361361
:lua require("neo-tree").paste_default_config()
@@ -413,7 +413,7 @@ require("neo-tree").setup({
413413
## The `:Neotree` Command
414414

415415
The single `:Neotree` command accepts a range of arguments that give you full
416-
control over the details of what and where it will show. For example, the following
416+
control over the details of what and where it will show. For example, the following
417417
command will open a file browser on the right hand side, "revealing" the currently
418418
active file:
419419

@@ -436,7 +436,7 @@ without any arguments, it will use default values for everything. For example:
436436
:Neotree
437437
```
438438

439-
will open the filesystem source on the left hand side and focus it, if you are using
439+
will open the filesystem source on the left hand side and focus it, if you are using
440440
the default config.
441441

442442
### Tab Completion
@@ -502,7 +502,7 @@ current file. For example:
502502
The base that is used to calculate the git status for each dir/file.
503503
By default it uses `HEAD`, so it shows all changes that are not yet committed.
504504
You can for example work on a feature branch, and set it to `main`. It will
505-
show all changes that happened on the feature branch and main since you
505+
show all changes that happened on the feature branch and main since you
506506
branched off.
507507

508508
Any git ref, commit, tag, or sha will work.
@@ -515,7 +515,7 @@ Any git ref, commit, tag, or sha will work.
515515
```
516516

517517
#### `reveal`
518-
This is a boolean flag. Adding this will make Neotree automatically find and
518+
This is a boolean flag. Adding this will make Neotree automatically find and
519519
focus the current file when it opens.
520520

521521
#### `reveal_file`
@@ -596,7 +596,7 @@ the same list you would see from `:ls`. To show with the `buffers` list, use:
596596
This view take the results of the `git status` command and display them in a
597597
tree. It includes commands for adding, unstaging, reverting, and committing.
598598

599-
The screenshot below shows the result of `:Neotree float git_status` while the
599+
The screenshot below shows the result of `:Neotree float git_status` while the
600600
filesystem is open in a sidebar:
601601

602602
![Neo-tree git_status](https://github.com/nvim-neo-tree/resources/raw/main/images/Neo-tree-git_status.png)
@@ -625,15 +625,15 @@ following features:
625625
- [x] Rename symbols (`rename`)
626626
- [x] Preview symbol (`preview` and friends)
627627
- [ ] Hover docs
628-
- [ ] Call hierarchy
628+
- [ ] Call hierarchy
629629
- [x] LSP
630630
- [x] LSP Support
631631
- [x] LSP server selection (ignore, allow_only, use first, use all, etc.)
632632
- [ ] CoC Support
633633

634634
See #879 for the tracking issue of these features.
635635

636-
This source is currently experimental, so in order to use it, you need to first
636+
This source is currently experimental, so in order to use it, you need to first
637637
add `"document_symbols"` to `config.sources` and open it with the command
638638
```
639639
:Neotree document_symbols
@@ -656,19 +656,19 @@ To do so, set one of these options to `true`:
656656
})
657657
```
658658

659-
There are many configuration options to change the style of these tabs.
659+
There are many configuration options to change the style of these tabs.
660660
See [lua/neo-tree/defaults.lua](lua/neo-tree/defaults.lua) for details.
661661

662662

663663
## Configuration and Customization
664664

665665
This is designed to be flexible. The way that is achieved is by making
666666
everything a function, or a string that identifies a built-in function. All of the
667-
built-in functions can be replaced with your own implementation, or you can
667+
built-in functions can be replaced with your own implementation, or you can
668668
add new ones.
669669

670670
Each node in the tree is created from the renderer specified for the given node
671-
type, and each renderer is a list of component configs to be rendered in order.
671+
type, and each renderer is a list of component configs to be rendered in order.
672672
Each component is a function, either built-in or specified in your config. Those
673673
functions simply return the text and highlight group for the component.
674674

0 commit comments

Comments
 (0)