andweeb / presence.nvim

Discord Rich Presence for Neovim
793 stars 68 forks source link

Plugin don't run at startup #119

Closed 0bvim closed 11 months ago

0bvim commented 11 months ago

Description

Plugin only starts when I run PlugUpdate/Install Command. And it happens with packer too, same problem.

Do not give any error msg or something like.

Update

When I enter in Netrw ':e.' it starts to count too. It can be some problem to detect event?

here is my configs from plugins.lua and init.vim

vim.cmd
[[
    augroup packer_user_config
    autocmd!
    autocmd BufWritePost plugins.lua source <afile> | PackerSync
    augroup end
]]

local status_ok, packer = pcall(require, "packer")
if not status_ok then
    return
end

return packer.startup(function(use)

    use "wbthomason/packer.nvim"
    use "andweeb/presence.nvim"

    if PACKER_BOOTSTRAP then
        require("packer").sync()
    end
end)

init.vim

call plug#begin('~/home/nivi/.local/share/nvim/plugged')

Plug 'andweeb/presence.nvim'

call plug#end()

Someone have a problem like this?

Neovim version

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

OS information

6.1.41-1-MANJARO

Steps to reproduce

  1. Setup presence.nvim
  2. Open any file in nvim

Logs

:message: No message error!

0bvim commented 11 months ago

I noted that plugin works only when I trigger any event on neovim, but not at startup.

when I use ':e.' for example.