(neovim) make plugins setup modular, huge changes to keymaps

This commit is contained in:
Bartek Stalewski 2025-06-28 01:11:53 +02:00
parent 99f699de06
commit 957ec52ca8
No known key found for this signature in database
9 changed files with 168 additions and 199 deletions

View file

@ -0,0 +1,28 @@
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",
},
},
}