Neovim-Configuration/lua/plugins/snacks.lua

47 lines
1.4 KiB
Lua

return {
"folke/snacks.nvim",
priority = 1000,
lazy = false,
---@type snacks.Config
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
bigfile = { enabled = true },
dashboard = { enabled = false },
explorer = { enabled = false },
indent = { enabled = false },
input = {
enabled = true,
keys = {
n_cancel = { "<C-g>", { "cmp_close", "cancel" }, mode = { "i", "n" }, expr = true },
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",
},
},
picker = {
enabled = true,
layout = "ivy",
win = {
input = {
keys = {
["<C-g>"] = { "close", mode = { "i", "n" } },
}
},
},
},
notifier = { enabled = true },
quickfile = { enabled = true },
scope = { enabled = false },
scroll = { enabled = false },
statuscolumn = { enabled = false },
words = { enabled = false },
},
}