1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-01-19 00:29:14 +00:00

26 lines
662 B
Nix
Raw Normal View History

2022-11-27 17:21:18 -07:00
{ pkgs, ... }: {
2023-07-29 23:56:41 -04:00
# Shows buffers in a VSCode-style tab layout
2022-11-27 17:21:18 -07:00
plugins = [
pkgs.vimPlugins.bufferline-nvim
pkgs.vimPlugins.vim-bbye # Better closing of buffers
];
setup.bufferline = {
options = {
diagnostics = "nvim_lsp";
always_show_bufferline = false;
separator_style = "slant";
offsets = [{ filetype = "NvimTree"; }];
};
};
lua = ''
-- Move buffers
vim.keymap.set("n", "L", ":BufferLineCycleNext<CR>", { silent = true })
vim.keymap.set("n", "H", ":BufferLineCyclePrev<CR>", { silent = true })
-- Kill buffer
vim.keymap.set("n", "<Leader>x", " :Bdelete<CR>", { silent = true })
'';
}