mirror of
https://github.com/akr2002/nv.git
synced 2024-11-12 20:19:45 +00:00
56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
{pkgs, ...}: {
|
|
extraPlugins = with pkgs.vimUtils; [
|
|
(buildVimPlugin {
|
|
pname = "sidebar.nvim";
|
|
version = "2024-02-07";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "sidebar-nvim";
|
|
repo = "sidebar.nvim";
|
|
rev = "5695712eef6288fff667343c4ae77c54911bdb1b";
|
|
sha256 = "1p12189367x0x26cys9wxipzwr3i0bmz4lb0s79ki0a49d6zja2c";
|
|
};
|
|
})
|
|
];
|
|
extraConfigLua = ''
|
|
local sidebar = require("sidebar-nvim")
|
|
sidebar.setup({
|
|
disable_default_keybindings = 0,
|
|
bindings = nil,
|
|
open = false,
|
|
side = "left",
|
|
initial_width = 32,
|
|
hide_statusline = false,
|
|
update_interval = 1000,
|
|
sections = { "git", "symbols", "files", "diagnostics", "todos", "buffers" },
|
|
section_separator = {"", "-----", ""},
|
|
section_title_separator = {""},
|
|
containers = {
|
|
attach_shell = "/bin/sh", show_all = true, interval = 5000,
|
|
},
|
|
datetime = { format = "%a %b %d, %H:%M", clocks = { { name = "local" } } },
|
|
todos = { ignored_paths = {} },
|
|
["git"] = {
|
|
icon = "", --
|
|
},
|
|
})
|
|
cmd = {
|
|
"SidebarNvimToggle",
|
|
"SidebarNvimOpen",
|
|
"SidebarNvimFocus",
|
|
"SidebarNvimUpdate",
|
|
},
|
|
'';
|
|
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>e";
|
|
action = ":SidebarNvimToggle<CR>";
|
|
options = {
|
|
desc = "Toggle Explorer";
|
|
silent = true;
|
|
};
|
|
}
|
|
];
|
|
}
|
|
|