Giter VIP home page Giter VIP logo

Comments (8)

rodolfoksveiga avatar rodolfoksveiga commented on August 22, 2024 1

I have no idea how, but my configuration remains the same and the problem is solved. You probably have tackled it in a bug fix or so. Thanks anyway for your help. And congrats for developing such a useful plugin.

from persisted.nvim.

olimorris avatar olimorris commented on August 22, 2024

Can you supply the minimal.lua file as per the bug report template? Impossible to try and recreate your issue without it

from persisted.nvim.

olimorris avatar olimorris commented on August 22, 2024

Closing for now

from persisted.nvim.

rodolfoksveiga avatar rodolfoksveiga commented on August 22, 2024

Copying the returned value from my persisted.lua configuration would do it. But I already updated the issue.

Can you reopen it..?

from persisted.nvim.

olimorris avatar olimorris commented on August 22, 2024

What if you remove the keys table?

from persisted.nvim.

olimorris avatar olimorris commented on August 22, 2024

@rodolfoksveiga any update on this?

from persisted.nvim.

rodolfoksveiga avatar rodolfoksveiga commented on August 22, 2024

Sorry for taking so long... I removed the keys table but SessionSave and SessionLoad still don't work, even if I call these commands from cmd (without key bindings).

from persisted.nvim.

olimorris avatar olimorris commented on August 22, 2024

Right, I amended your minimal.lua config to work:

local root = "/tmp/persisted"

-- Set stdpaths to use root dir
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- Bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

vim.opt.sessionoptions = "buffers,curdir,folds,globals,tabpages,winpos,winsize" -- Session options to store in the session

-- Install plugins
local plugins = {
  {
    "olimorris/persisted.nvim",
    opts = {
      save_dir = "/tmp/persisted/sessions/",
      silent = false,
      use_git_branch = true,
      branch_separator = "_",
      autosave = false,
      autoload = false,
    },
  },
  -- Put any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

and isolated the issue. Thanks for spotting! That was a real edge case!

from persisted.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.