nvim-tree.lua 233 B

123456789101112
  1. --
  2. -- nvim-tree plugin setup
  3. --
  4. require('nvim-tree').setup()
  5. nvimtreeapi = require('nvim-tree.api')
  6. vim.keymap.set('n', '<leader>o', function()
  7. nvimtreeapi.tree.toggle({ focus = true })
  8. end,
  9. {desc = 'Open the file explorer'})