aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/lua
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-07-03 16:11:32 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-07-03 16:11:32 +0800
commit31664bc6bd1f666f4ea6f9ae5b583bb8d18b69d2 (patch)
tree90e7685126b175376f8eecd153fe01653b4beb07 /vim/lua
parent0bed649a238b300f7b960d52d161cbb0adc717af (diff)
Update
Diffstat (limited to 'vim/lua')
-rw-r--r--vim/lua/chadrc.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/vim/lua/chadrc.lua b/vim/lua/chadrc.lua
index aa9a78c..4efa204 100644
--- a/vim/lua/chadrc.lua
+++ b/vim/lua/chadrc.lua
@@ -13,19 +13,14 @@ M.ui = {
13 -- }, 13 -- },
14 tabufline = { 14 tabufline = {
15 enabled = true, 15 enabled = true,
16 order = { "treeOffset", "buffers", "tabs" },
16 }, 17 },
17} 18}
18 19
19-- For tabufline 20-- For tabufline
20if M.ui.tabufline.enabled then 21if M.ui.tabufline.enabled then
21 vim.keymap.set("n", "<C-c>", function() 22 vim.keymap.set("n", "<C-c>", function()
22 local bufnrs = vim.tbl_filter(function(b) 23 local bufnrs = vim.tbl_filter(function(b) return 1 == vim.fn.buflisted(b) end, vim.api.nvim_list_bufs())
23 if 1 ~= vim.fn.buflisted(b) then
24 return false
25 else
26 return true
27 end
28 end, vim.api.nvim_list_bufs())
29 if #bufnrs == 1 then 24 if #bufnrs == 1 then
30 vim.cmd("silent quit!") 25 vim.cmd("silent quit!")
31 else 26 else