mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-05 02:53:38 -08:00
fix snacks indent
This commit is contained in:
@@ -10,11 +10,12 @@ return {
|
|||||||
bigfile = { enabled = true },
|
bigfile = { enabled = true },
|
||||||
dashboard = { enabled = true },
|
dashboard = { enabled = true },
|
||||||
explorer = { enabled = true },
|
explorer = { enabled = true },
|
||||||
|
indent = {
|
||||||
indent = {
|
indent = {
|
||||||
priority = 1,
|
priority = 1,
|
||||||
enabled = true, -- enable indent guides
|
enabled = true, -- enable indent guides
|
||||||
char = "│",
|
char = "│",
|
||||||
only_scope = false, -- only show indent guides of the scope
|
only_scope = true, -- only show indent guides of the scope
|
||||||
only_current = false, -- only show indent guides in the current window
|
only_current = false, -- only show indent guides in the current window
|
||||||
-- hl = "SnacksIndent", ---@type string|string[] hl groups for indent guides
|
-- hl = "SnacksIndent", ---@type string|string[] hl groups for indent guides
|
||||||
-- can be a list of hl groups to cycle through
|
-- can be a list of hl groups to cycle through
|
||||||
@@ -28,6 +29,7 @@ return {
|
|||||||
"SnacksIndent7",
|
"SnacksIndent7",
|
||||||
"SnacksIndent8",
|
"SnacksIndent8",
|
||||||
},
|
},
|
||||||
|
},
|
||||||
animate = {
|
animate = {
|
||||||
-- enabled = vim.fn.has("nvim-0.10") == 1,
|
-- enabled = vim.fn.has("nvim-0.10") == 1,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
@@ -49,41 +51,6 @@ return {
|
|||||||
icon_pos = "left",
|
icon_pos = "left",
|
||||||
prompt_pos = "title",
|
prompt_pos = "title",
|
||||||
win = { style = "input" },
|
win = { style = "input" },
|
||||||
expand = true,
|
|
||||||
backdrop = true,
|
|
||||||
position = "float",
|
|
||||||
border = "rounded",
|
|
||||||
title_pos = "center",
|
|
||||||
height = 1,
|
|
||||||
width = 60,
|
|
||||||
relative = "editor",
|
|
||||||
noautocmd = true,
|
|
||||||
row = 2,
|
|
||||||
-- relative = "cursor",
|
|
||||||
-- row = -3,
|
|
||||||
-- col = 0,
|
|
||||||
wo = {
|
|
||||||
winhighlight = "NormalFloat:SnacksInputNormal,FloatBorder:SnacksInputBorder,FloatTitle:SnacksInputTitle",
|
|
||||||
cursorline = false,
|
|
||||||
},
|
|
||||||
bo = {
|
|
||||||
filetype = "snacks_input",
|
|
||||||
buftype = "prompt",
|
|
||||||
},
|
|
||||||
--- buffer local variables
|
|
||||||
b = {
|
|
||||||
completion = false, -- disable blink completions in input
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
n_esc = { "<esc>", { "cmp_close", "cancel" }, mode = "n", expr = true },
|
|
||||||
i_esc = { "<esc>", { "cmp_close", "stopinsert" }, mode = "i", expr = true },
|
|
||||||
i_cr = { "<cr>", { "cmp_accept", "confirm" }, mode = { "i", "n" }, expr = true },
|
|
||||||
i_tab = { "<tab>", { "cmp_select_next", "cmp" }, mode = "i", expr = true },
|
|
||||||
i_ctrl_w = { "<c-w>", "<c-s-w>", mode = "i", expr = true },
|
|
||||||
i_up = { "<up>", { "hist_up" }, mode = { "i", "n" } },
|
|
||||||
i_down = { "<down>", { "hist_down" }, mode = { "i", "n" } },
|
|
||||||
q = "cancel",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
lazygit = { enabled = true },
|
lazygit = { enabled = true },
|
||||||
picker = { enabled = true },
|
picker = { enabled = true },
|
||||||
@@ -163,5 +130,43 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
win = { enabled = true },
|
win = { enabled = true },
|
||||||
|
styles = {
|
||||||
|
input = {
|
||||||
|
backdrop = false,
|
||||||
|
position = "float",
|
||||||
|
border = "rounded",
|
||||||
|
title_pos = "center",
|
||||||
|
height = 1,
|
||||||
|
width = 60,
|
||||||
|
relative = "editor",
|
||||||
|
noautocmd = true,
|
||||||
|
row = 2,
|
||||||
|
-- relative = "cursor",
|
||||||
|
-- row = -3,
|
||||||
|
-- col = 0,
|
||||||
|
wo = {
|
||||||
|
winhighlight = "NormalFloat:SnacksInputNormal,FloatBorder:SnacksInputBorder,FloatTitle:SnacksInputTitle",
|
||||||
|
cursorline = false,
|
||||||
|
},
|
||||||
|
bo = {
|
||||||
|
filetype = "snacks_input",
|
||||||
|
buftype = "prompt",
|
||||||
|
},
|
||||||
|
--- buffer local variables
|
||||||
|
b = {
|
||||||
|
completion = false, -- disable blink completions in input
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
n_esc = { "<esc>", { "cmp_close", "cancel" }, mode = "n", expr = true },
|
||||||
|
i_esc = { "<esc>", { "cmp_close", "stopinsert" }, mode = "i", expr = true },
|
||||||
|
i_cr = { "<cr>", { "cmp_accept", "confirm" }, mode = { "i", "n" }, expr = true },
|
||||||
|
i_tab = { "<tab>", { "cmp_select_next", "cmp" }, mode = "i", expr = true },
|
||||||
|
i_ctrl_w = { "<c-w>", "<c-s-w>", mode = "i", expr = true },
|
||||||
|
i_up = { "<up>", { "hist_up" }, mode = { "i", "n" } },
|
||||||
|
i_down = { "<down>", { "hist_down" }, mode = { "i", "n" } },
|
||||||
|
q = "cancel",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user