(neovim) make plugins setup modular, huge changes to keymaps
This commit is contained in:
parent
99f699de06
commit
957ec52ca8
9 changed files with 168 additions and 199 deletions
28
config/common/nvim/lua/plugins/snacks.lua
Normal file
28
config/common/nvim/lua/plugins/snacks.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue