28 lines
560 B
Lua
28 lines
560 B
Lua
return {
|
|
"folke/snacks.nvim",
|
|
opts = {
|
|
dashboard = { enabled = false },
|
|
},
|
|
keys = {
|
|
{
|
|
"<leader>n",
|
|
function()
|
|
vim.cmd("set number!")
|
|
vim.cmd('execute "set signcolumn=" . (&signcolumn == "yes" ? "no" : "yes")')
|
|
if Snacks.indent.enabled then
|
|
Snacks.indent.disable()
|
|
else
|
|
Snacks.indent.enable()
|
|
end
|
|
end,
|
|
desc = "Toggle Decorations",
|
|
},
|
|
{
|
|
"<leader>e",
|
|
function()
|
|
Snacks.explorer()
|
|
end,
|
|
desc = "File Explorer",
|
|
},
|
|
},
|
|
}
|