diff --git a/init.lua b/init.lua index a6aa6e0..8fd8530 100644 --- a/init.lua +++ b/init.lua @@ -26,7 +26,7 @@ cmd "syntax on" g.auto_save = 1 g.indentLine_enabled = 1 -g.indentLine_char_list = {'▏'} +g.indentLine_char_list = {"▏"} g.mapleader = " " @@ -60,3 +60,5 @@ require("lspkind").init( File = " " } ) + + diff --git a/lua/bufferline/lua.lua b/lua/bufferline/lua.lua index 3f090a1..b76d387 100644 --- a/lua/bufferline/lua.lua +++ b/lua/bufferline/lua.lua @@ -5,7 +5,7 @@ require "bufferline".setup { options = { buffer_close_icon = "", modified_icon = "●", - close_icon = "", + close_icon = "", left_trunc_marker = "", right_trunc_marker = "", max_name_length = 14, @@ -52,3 +52,13 @@ require "bufferline".setup { } } } + +local opt = {silent = true} + +vim.g.mapleader = " " + +-- tabnew and tabprev +vim.api.nvim_set_keymap("n", "tn", [[BufferLineCycleNext]], opt) +vim.api.nvim_set_keymap("n", "tp", [[BufferLineCyclePrev]], opt) + +