Fork me on GitHub
#vim
<
2022-11-22
>
Tema Nomad12:11:56

how can I add .DS_Store file into nvim-tree filters config? I tried this:

use {
  'kyazdani42/nvim-tree.lua',
  requires = {
    'kyazdani42/nvim-web-devicons'
  },
  config = function()
    require('nvim-tree').setup {
      filters = {
        custom = {"/.DS_Store"}
      }
    }
  end
}
but it raises config error

Evan13:11:31

Filters take regexes, so "^\\.DS_Store$" should work.

🙏 1
Tema Nomad13:11:37

works! Thanks

👍 1