aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/lua
diff options
context:
space:
mode:
Diffstat (limited to 'vim/lua')
-rw-r--r--vim/lua/chadrc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/lua/chadrc.lua b/vim/lua/chadrc.lua
index 267949f..851b78b 100644
--- a/vim/lua/chadrc.lua
+++ b/vim/lua/chadrc.lua
@@ -34,7 +34,7 @@ M.ui = {
34if M.ui.tabufline.enabled then 34if M.ui.tabufline.enabled then
35 vim.keymap.set("n", "<C-c>", function() 35 vim.keymap.set("n", "<C-c>", function()
36 local bufnrs = vim.tbl_filter(function(b) return 1 == vim.fn.buflisted(b) end, vim.api.nvim_list_bufs()) 36 local bufnrs = vim.tbl_filter(function(b) return 1 == vim.fn.buflisted(b) end, vim.api.nvim_list_bufs())
37 if #bufnrs == 1 then 37 if #bufnrs == 1 or #vim.fn.getwininfo() > 1 then
38 vim.cmd("silent quit") 38 vim.cmd("silent quit")
39 else 39 else
40 require("nvchad.tabufline").close_buffer() 40 require("nvchad.tabufline").close_buffer()