a new idea for autoclose #2021
                  
                    
                      EliasA5
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 1 comment 2 replies
-
| Please add to the wiki: https://github.com/nvim-tree/nvim-tree.lua/wiki/Auto-Close There are many ways to auto close; it's good to have as many options as possible. | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Added the following 2 lines to my remaps:
vim.keymap.set("n", ":q<CR>", ":NvimTreeClose<CR>:q<CR>", { nowait = true })vim.keymap.set("n", ":", ":", { nowait = true })The first one simply closes the nvimtree first then reissues the
:qcommand.The second one purpose that if you start typing
:it will show in the command line, despite starting to match the first command.I can't think of any problems that this would cause, and it only acts after typing the full command.
Beta Was this translation helpful? Give feedback.
All reactions