summaryrefslogtreecommitdiffstats
path: root/after/plugin/glance.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/plugin/glance.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/after/plugin/glance.lua b/after/plugin/glance.lua
new file mode 100644
index 0000000..08f90d1
--- /dev/null
+++ b/after/plugin/glance.lua
@@ -0,0 +1,30 @@
+local status_ok, glance = pcall(require, "glance")
+if not status_ok then
+ return
+end
+
+local actions = glance.actions
+glance.setup {
+ detached = function(winid)
+ return vim.api.nvim_win_get_width(winid) < 100
+ end,
+
+ border = {
+ enable = true,
+ top_char = '',
+ },
+ theme = {
+ enable = false,
+ },
+ folds = {
+ fold_closed = '>',
+ fold_open = 'V',
+ folded = true,
+ },
+ indent_lines = {
+ enable = false,
+ },
+ winbar = {
+ enable = true,
+ },
+}