psliwka / vim-smoothie

Smooth scrolling for Vim done rightšŸ„¤
MIT License
988 stars 27 forks source link

how to add the plugin with lazyvim #49

Open fusying-hwang opened 10 months ago

fusying-hwang commented 10 months ago

could you pls give an example about how to add this plug in with lazyvim?

ncharris93 commented 8 months ago

@fusying-hwang

return {
    {
        "psliwka/vim-smoothie",
        init = function()
            vim.g.smoothie_enabled = 1
        end,
    },
}
alexesmet commented 1 month ago

Another example if you sometimes use Neovide that already has smooth scroll built in and you don't want these behaviors to conflict:

  {
    "psliwka/vim-smoothie",
    enabled = function() return not vim.g.neovide end,
  }