bufferline mappings (#5)

This commit is contained in:
siduck76 2021-03-18 19:19:45 +05:30
parent 68bfc76d0a
commit 4a1530ec22
2 changed files with 14 additions and 2 deletions

View File

@ -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 = ""
}
)

View File

@ -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", "<Leader>tn", [[<Cmd>BufferLineCycleNext<CR>]], opt)
vim.api.nvim_set_keymap("n", "<Leader>tp", [[<Cmd>BufferLineCyclePrev<CR>]], opt)