23 lines
784 B
Lua
23 lines
784 B
Lua
require("sidebar-nvim").setup {
|
|
disable_default_keybindings = 0,
|
|
bindings = nil,
|
|
open = false,
|
|
side = 'right',
|
|
initial_width = 35,
|
|
hide_statusline = true,
|
|
update_interval = 1000,
|
|
sections = { "diagnostics", "symbols", "todos" },
|
|
section_separator = {"", "-----", ""},
|
|
containers = {
|
|
attach_shell = "/bin/sh", show_all = true, interval = 5000,
|
|
},
|
|
datetime = { format = "%a %b %d, %H:%M", clocks = { { name = "local" } } },
|
|
todos = { ignored_paths = { "~" } },
|
|
disable_closing_prompt = false
|
|
}
|
|
|
|
local options = { noremap = true }
|
|
local map = vim.api.nvim_set_keymap
|
|
map('n', '<C-s>', "<cmd>lua require('sidebar-nvim').toggle()<cr>", options)
|
|
map('n', '<leader>s', "<cmd>lua require('sidebar-nvim').focus()<cr>", options)
|
|
|