From 3fa3c62ab3439bffacea380631e5e2e4c5a67fcb Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 21 Jul 2024 19:42:12 +0800 Subject: Update --- vim/lua/chadrc.lua | 66 ------------------------------------------------------ 1 file changed, 66 deletions(-) (limited to 'vim/lua/chadrc.lua') diff --git a/vim/lua/chadrc.lua b/vim/lua/chadrc.lua index 182ed96..11777ca 100644 --- a/vim/lua/chadrc.lua +++ b/vim/lua/chadrc.lua @@ -3,70 +3,4 @@ ---@type ChadrcConfig local M = {} - -M.ui = { - theme = "onedark", - hl_override = { - CursorLineNr = { fg = "#eeee00" }, - }, - - -- hl_override = { - -- Comment = { italic = true }, - -- ["@comment"] = { italic = true }, - -- }, - tabufline = { - enabled = true, - order = { "treeOffset", "buffers", "tabs" }, - }, - - term = { - hl = "Normal:term,WinSeparator:WinSeparator", - sizes = { sp = 0.4, vsp = 0.4 }, - float = { - relative = "editor", - row = 0.15, - col = 0.13, - width = 0.7, - height = 0.7, - border = "single", - }, - }, -} - --- For tabufline -if M.ui.tabufline.enabled then - vim.api.nvim_exec( - [[ - function! CloseBufferSafely() - lua require("nvchad.tabufline").close_buffer() - endfunction - ]], - false - ) - - for i = 1, 9, 1 do - vim.keymap.set("n", string.format("", i), function() - vim.api.nvim_set_current_buf(vim.t.bufs[i]) - end) - end - vim.keymap.set("n", "", function() - require("nvchad.tabufline").move_buf(-1) - end) - vim.keymap.set("n", "", function() - require("nvchad.tabufline").move_buf(1) - end) - vim.keymap.set("n", "", function() - vim.cmd("tabprevious") - end) - vim.keymap.set("n", "", function() - vim.cmd("tabnext") - end) - vim.keymap.set("n", "", function() - require("nvchad.tabufline").next() - end, { desc = "buffer goto next" }) - vim.keymap.set("n", "", function() - require("nvchad.tabufline").prev() - end, { desc = "buffer goto prev" }) -end - return M -- cgit v1.2.3-70-g09d2