fix: remove persistence plugin
This commit is contained in:
+3
-4
@@ -18,7 +18,7 @@
|
|||||||
"neotest": { "branch": "master", "commit": "d66cf4e05a116957f0d3a7755a24291c7d1e1f72" },
|
"neotest": { "branch": "master", "commit": "d66cf4e05a116957f0d3a7755a24291c7d1e1f72" },
|
||||||
"neotest-dotnet": { "branch": "main", "commit": "5a2fa35c3c6a72cfd3fc6a28b3d1af6e68e6c3a8" },
|
"neotest-dotnet": { "branch": "main", "commit": "5a2fa35c3c6a72cfd3fc6a28b3d1af6e68e6c3a8" },
|
||||||
"neotest-jest": { "branch": "main", "commit": "514fd4eae7da15fd409133086bb8e029b65ac43f" },
|
"neotest-jest": { "branch": "main", "commit": "514fd4eae7da15fd409133086bb8e029b65ac43f" },
|
||||||
"neotest-playwright": { "branch": "master", "commit": "6266945039dac27a354de33d2f2a66e75485d5e9" },
|
"neotest-playwright": { "branch": "stevanfreeborn/fix/local-mods", "commit": "3751dc88d39cf135eb569d47f5ef036bc1f1930d" },
|
||||||
"neotest-python": { "branch": "master", "commit": "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" },
|
"neotest-python": { "branch": "master", "commit": "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" },
|
||||||
"neotest-vitest": { "branch": "main", "commit": "3e338b77700853f725856c37ff5a3cf9295bffae" },
|
"neotest-vitest": { "branch": "main", "commit": "3e338b77700853f725856c37ff5a3cf9295bffae" },
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "ed8f80849ef1ad31c2f74679fafdef7801091247" },
|
"none-ls.nvim": { "branch": "main", "commit": "ed8f80849ef1ad31c2f74679fafdef7801091247" },
|
||||||
@@ -26,16 +26,15 @@
|
|||||||
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "3d02855468f94bf435db41b661b58ec4f48a06b7" },
|
"nvim-autopairs": { "branch": "master", "commit": "3d02855468f94bf435db41b661b58ec4f48a06b7" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" },
|
"nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "1fdfe74661170ce58d37dc46259448987ffe706c" },
|
"nvim-dap": { "branch": "master", "commit": "ead0de6eac91a555b714bfd7d28959eeecfb96f9" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" },
|
"nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "637293ce23c6a965d2f11dfbf92f604bb1978052" },
|
"nvim-lspconfig": { "branch": "master", "commit": "1f941b3668151963fca3e1230922c433ea4b7b64" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "2206739829518c9ea59dbdb9003e0147fdaf2d1c" },
|
"nvim-treesitter": { "branch": "master", "commit": "2206739829518c9ea59dbdb9003e0147fdaf2d1c" },
|
||||||
"nvim-treesitter-context": { "branch": "master", "commit": "bece284c5322ddf6946fa4bdc383a2bc033269d7" },
|
"nvim-treesitter-context": { "branch": "master", "commit": "bece284c5322ddf6946fa4bdc383a2bc033269d7" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "1c9136332840edee0c593f2f4f89598c8ed97f5f" },
|
"nvim-web-devicons": { "branch": "master", "commit": "1c9136332840edee0c593f2f4f89598c8ed97f5f" },
|
||||||
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
|
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
|
||||||
"onedarkpro.nvim": { "branch": "main", "commit": "44775f8206ee43b692e7f3dc894ddc47996ee523" },
|
"onedarkpro.nvim": { "branch": "main", "commit": "44775f8206ee43b692e7f3dc894ddc47996ee523" },
|
||||||
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
|
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
|
||||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "85b80abaa09cbbc039e3095b2f515b3cf8cadd11" },
|
"rainbow-delimiters.nvim": { "branch": "master", "commit": "85b80abaa09cbbc039e3095b2f515b3cf8cadd11" },
|
||||||
"telescope-themes": { "branch": "main", "commit": "9b7c368b83b82b53c0a6e9e977f8329e5f1fe269" },
|
"telescope-themes": { "branch": "main", "commit": "9b7c368b83b82b53c0a6e9e977f8329e5f1fe269" },
|
||||||
|
|||||||
+54
-46
@@ -1,8 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
"nvimdev/dashboard-nvim",
|
"nvimdev/dashboard-nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
config = function()
|
config = function()
|
||||||
local logo = [[
|
local logo = [[
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -28,48 +28,56 @@ return {
|
|||||||
|
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local opts = {
|
local opts = {
|
||||||
theme = "doom",
|
theme = "doom",
|
||||||
hide = {
|
hide = {
|
||||||
statusline = false,
|
statusline = false,
|
||||||
},
|
},
|
||||||
config = {
|
config = {
|
||||||
header = vim.split(logo, "\n"),
|
header = vim.split(logo, "\n"),
|
||||||
center = {
|
center = {
|
||||||
{ action = 'lua require("telescope.builtin").find_files()', desc = " Find File", icon = " ", key = "f" },
|
{
|
||||||
{ action = "ene | startinsert", desc = " New File", icon = " ", key = "n" },
|
action = 'lua require("telescope.builtin").find_files()',
|
||||||
{ action = 'lua require("telescope.builtin").oldfiles()', desc = " Recent Files", icon = " ", key = "r" },
|
desc = " Find File",
|
||||||
{ action = 'lua require("telescope.builtin").live_grep()', desc = " Find Text", icon = " ", key = "g" },
|
icon = " ",
|
||||||
{
|
key = "f",
|
||||||
action = 'lua require("persistence").load()',
|
},
|
||||||
desc = " Restore Session",
|
{ action = "ene | startinsert", desc = " New File", icon = " ", key = "n" },
|
||||||
icon = " ",
|
{
|
||||||
key = "s",
|
action = 'lua require("telescope.builtin").oldfiles()',
|
||||||
},
|
desc = " Recent Files",
|
||||||
{ action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
|
icon = " ",
|
||||||
{
|
key = "r",
|
||||||
action = function()
|
},
|
||||||
vim.api.nvim_input("<cmd>qa<cr>")
|
{
|
||||||
end,
|
action = 'lua require("telescope.builtin").live_grep()',
|
||||||
desc = " Quit",
|
desc = " Find Text",
|
||||||
icon = " ",
|
icon = " ",
|
||||||
key = "q",
|
key = "g",
|
||||||
},
|
},
|
||||||
},
|
{ action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
|
||||||
footer = function()
|
{
|
||||||
local stats = require("lazy").stats()
|
action = function()
|
||||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
vim.api.nvim_input("<cmd>qa<cr>")
|
||||||
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
|
end,
|
||||||
end,
|
desc = " Quit",
|
||||||
},
|
icon = " ",
|
||||||
}
|
key = "q",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
footer = function()
|
||||||
|
local stats = require("lazy").stats()
|
||||||
|
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||||
|
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
require("dashboard").setup(opts)
|
require("dashboard").setup(opts)
|
||||||
|
|
||||||
for _, button in ipairs(opts.config.center) do
|
for _, button in ipairs(opts.config.center) do
|
||||||
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
|
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
|
||||||
button.key_format = " %s"
|
button.key_format = " %s"
|
||||||
end
|
end
|
||||||
|
end,
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require("neo-tree").setup({
|
require("neo-tree").setup({
|
||||||
filesystem = {
|
filesystem = {
|
||||||
|
use_libuv_file_watcher = true,
|
||||||
filtered_items = {
|
filtered_items = {
|
||||||
visible = true,
|
visible = true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/persistence.nvim",
|
|
||||||
event = "BufReadPre",
|
|
||||||
config = function()
|
|
||||||
local persistence = require("persistence")
|
|
||||||
|
|
||||||
persistence.setup({␍
|
|
||||||
dir = vim.fn.stdpath("data") .. "/sessions/",
|
|
||||||
need = 1,
|
|
||||||
branch = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>qs", persistence.load, { desc = "Load session for the current directory" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>qS", persistence.select, { desc = "Select session to load" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>ql", function()
|
|
||||||
require("persistence").load({ last = true })
|
|
||||||
end, { desc = "Load last session" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>qd", persistence.stop, { desc = "Stop Persistence" })
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user