Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: conflict with pocco81/auto-save.nvim yank triggers write #196

Closed
mikesmithgh opened this issue Feb 14, 2024 · 2 comments
Closed

bug: conflict with pocco81/auto-save.nvim yank triggers write #196

mikesmithgh opened this issue Feb 14, 2024 · 2 comments
Labels
bug Something isn't working plugin conflict

Comments

@mikesmithgh
Copy link
Owner

Result of discussion: #192

lazy.nvim setup:

return {
  'pocco81/auto-save.nvim',
  lazy = false,
  enabled = true,
  config = function()
    require('auto-save').setup()
  end,
}

Steps to reproduce:

  • open kitty-scrollback.nvim
  • yank text

Actual:

  • text is copied to "paste window"
  • auto-save.nvim triggers a write to try and autosave
  • write results in sending the contents of the "paste window" to kitty

Expected:

  • text is copied to "paste window"

Workaround:

Disable pocco81/auto-save.nvim

@mikesmithgh mikesmithgh added bug Something isn't working plugin conflict labels Feb 14, 2024
@mikesmithgh
Copy link
Owner Author

I created a Wiki page Recommended Configurations provide recommendations for plugins that may conflict with kitty-scrollback.nvim.

The recommend configuration for auto-save.nvim is:

Disable auto-save.nvim when kitty-scrollback.nvim is active.

require('auto-save').setup({
  enabled = vim.env.KITTY_SCROLLBACK_NVIM ~= 'true',
})

This lets you keep using auto-save.nvim in normal nvim sessions but disables it for kitty-scrollback.nvim sessions.

FYI @aksh1618

@aksh1618
Copy link

aksh1618 commented Mar 3, 2024

Disable auto-save.nvim when kitty-scrollback.nvim is active.

@mikesmithgh I had tried exactly that as my first step! But sadly it didn't work, so I decided to remove the plugin for now and file it under see later. It is now later, and I found out that this plugin doesn't read the config correctly (See pocco81/auto-save.nvim#76) and there is another fork that is more maintained: https://github.com/okuuva/auto-save.nvim. So I switched to that one and it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin conflict
Projects
None yet
Development

No branches or pull requests

2 participants