fix <leader>x not closing nvim-tree

navigator
zbirenbaum 2 years ago
parent aa4bab9605
commit 36a25ded76

@ -3,7 +3,7 @@ local M = {}
local cmd = vim.cmd
M.close_buffer = function(force)
if force or not vim.bo.buflisted then
if force or not vim.bo.buflisted or vim.bo.buftype == 'nofile' then
cmd ":bd!"
else
cmd "bd"

Loading…
Cancel
Save