add persistence

This commit is contained in:
Adithya 2024-06-11 21:28:15 +05:30
parent eac3d1e24c
commit b862d7ecb3
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 9 additions and 1 deletions

View file

@ -15,6 +15,7 @@
"nvim-treesitter": { "branch": "master", "commit": "9ebc589329083522f9594f408fc2652090b41139" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "34867c69838078df7d6919b130c0541c0b400c47" },
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
"persistence.nvim": { "branch": "main", "commit": "5fe077056c821aab41f87650bd6e1c48cd7dd047" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }

View file

@ -43,6 +43,12 @@ Plugin.opts = {
config = {
header = logo,
center = {
{
icon = "󰦛 ",
desc = "Restore Session",
action = 'lua require("persistence").load()',
key = "r",
},
{
icon = "󰱼 ",
desc = "Find Text",

View file

@ -1,5 +1,6 @@
local Plugins = {
{ "stevearc/dressing.nvim", opts = {}, event = "VeryLazy" },
{ "stevearc/dressing.nvim", event = "VeryLazy", opts = {} },
{ "folke/persistence.nvim", event = "BufReadPre", opts = {} },
{ "sindrets/diffview.nvim", dependencies = { "nvim-tree/nvim-web-devicons" } },
{ "nvim-tree/nvim-web-devicons", lazy = true },
}