Skip to content

Commit

Permalink
basics: configure neotree to show hidden files and directories
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Nov 13, 2023
1 parent 1e3adbc commit aae7444
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- nodejs requirement for mason lsp server install
- repl: initial page on structured editing with parinfer
- basic: Astronvim notification page with history navigation
- basics: configure neotree to show hidden files and directories

### Changed
- ci: spell lychee & repository trufflehog linters warn only (false positives)
Expand Down
24 changes: 24 additions & 0 deletions docs/neovim-basics/file-buffer-window-tab.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,30 @@ Use [Telescope](#telescope) to select files, typing a name narrows the file list

++spc++ ++"o"++ toggles between buffer and neo-tree

!!! EXAMPLE "Configure hidden files"
Configure Neotree to display hidden files and directories by default. They are shown with a different visual style (subtle color) compared to the other files and directories.

`H` with the cursor in neotree window will still toggle the display of hidden files and directories.

Optionally, specify files or directories to never show.
```lua title="Practicalli Astronvim-config: plugins/core.lua"
{
"nvim-neo-tree/neo-tree.nvim",
opts = {
filesystem = {
filtered_items = {
-- when true, they will just be displayed differently than normal items
visible = true,
-- remains hidden even if visible is toggled to true, this overrides always_show
never_show = {
".DS_Store",
"thumbs.db",
},
},
},
},
},
```

=== "Practicalli Neovim Config Redux"

Expand Down

0 comments on commit aae7444

Please sign in to comment.