bufferline mappings (#5)
This commit is contained in:
parent
68bfc76d0a
commit
4a1530ec22
4
init.lua
4
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 = " "
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user