1
0
Fork 0
mirror of https://github.com/jiriks74/presence.nvim synced 2025-03-15 02:33:01 +01:00

Compare commits

..

1 commit

Author SHA1 Message Date
a64fc20704
fix(formatting): Fix formatting using stylua 2023-09-29 01:39:35 +02:00
7 changed files with 28 additions and 110 deletions

View file

@ -1,98 +1,47 @@
name: Issue report name: Issue report
description: Report any errors, bugs, or unexpected behaviors related to presence.nvim description: Report any errors, bugs, or unexpected behaviors related to presence.nvim
title: "[Bug]: "
labels: [bug] labels: [bug]
assignees:
- jiriks74
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Before reporting, please search [existing issues](https://github.com/andweeb/presence.nvim/issues) and make sure that presence.nvim is updated to the latest version. Before reporting, please search [existing issues](https://github.com/andweeb/presence.nvim/issues) and make sure that presence.nvim is updated to the latest version.
- type: checkboxes
attributes:
label: Are you on the latest version?
options:
- label: I have updated to the latest version.
required: true
- type: checkboxes
attributes:
label: Have you tried it with default config?
options:
- label: I have tried the default config.
required: true
- type: textarea - type: textarea
attributes: attributes:
label: "Description" label: "Description"
description: "A short summary of the error, bug, or unexpected behavior you're facing." description: "A short summary of the error, bug, or unexpected behavior you're facing."
validations: validations:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
label: "Neovim version" label: "Neovim version"
description: "Output of `nvim --version`" description: "Output of `nvim --version`"
render: markdown render: markdown
placeholder: | placeholder: |
NVIM: v0.6.0-dev+209-g0603eba6e NVIM v0.6.0-dev+209-g0603eba6e
Build type: Release Build type: Release
LuaJIT: 2.1.0-beta3 LuaJIT 2.1.0-beta3
value: |
NVIM:
Build type:
LuaJIT:
validations: validations:
required: true required: true
- type: input - type: input
attributes: attributes:
label: "OS information" label: "OS information"
placeholder: "macOS 12.0.1" placeholder: "macOS 12.0.1"
validations: validations:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
label: "Steps to reproduce" label: "Steps to reproduce"
description: "Steps to reproduce the issue with your config(s) if applicable." description: "Steps to reproduce the issue with your config(s) if applicable"
placeholder: | placeholder: |
1. Setup presence.nvim with `require("presence"):setup({...})` 1. Setup presence.nvim with `require("presence"):setup({...})`
2. Run Neovim with `nvim test.txt` 2. Run Neovim with `nvim test.txt`
3. ... 3. ...
validations: validations:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
label: "Logs" label: "Logs"
description: "The full list of `:messages` from one or more `nvim` instances.\nPlease insert the logs into code blocks." description: "The full list of `:messages` from one or more `nvim` instances"
placeholder: |
<details>
```
[presence.nvim] Using runtime path: /run/user/1000
[presence.nvim] Using Discord IPC socket path: /run/user/1000/discord-ipc-0
[presence.nvim] Checking Discord IPC socket at /run/user/1000/discord-ipc-0...
```
</details>
value: |
<details>
```
```
</details>
validations: validations:
required: true required: true
- type: textarea
attributes:
label: "Aditional info"
description: "If you'd like to add anything else put it here."
validations:
required: false

View file

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View file

@ -1,34 +0,0 @@
name: Feature request
description: Report any errors, bugs, or unexpected behaviors related to presence.nvim
title: "[FEAT]: "
labels: [enhancement]
assignees:
- jiriks74
body:
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when...
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: false
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false

View file

@ -1,7 +1,7 @@
name: Luacheck name: Luacheck
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
Luacheck: sile:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

View file

@ -1,15 +0,0 @@
name: StyLua
on: [push, pull_request]
jobs:
StyLuacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: StyLua check
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GH_TOKEN }}
version: v0.18.2 # NOTE: we recommend pinning to a specific version in case of formatting changes
# CLI arguments
args: --check .

View file

@ -62,7 +62,7 @@ require("presence").setup({
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image
main_image = "neovim", -- Main image display (either "neovim" or "file") main_image = "neovim", -- Main image display (either "neovim" or "file")
client_id = "1172122807501594644", -- Use your own Discord application client id (not recommended) client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`) debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
enable_line_number = false, -- Displays the current line number instead of the current project enable_line_number = false, -- Displays the current line number instead of the current project
@ -91,7 +91,7 @@ Or if global variables are more your thing, you can use any of the following ins
let g:presence_auto_update = 1 let g:presence_auto_update = 1
let g:presence_neovim_image_text = "The One True Text Editor" let g:presence_neovim_image_text = "The One True Text Editor"
let g:presence_main_image = "neovim" let g:presence_main_image = "neovim"
let g:presence_client_id = "1172122807501594644" let g:presence_client_id = "793271441293967371"
let g:presence_log_level let g:presence_log_level
let g:presence_debounce_timeout = 10 let g:presence_debounce_timeout = 10
let g:presence_enable_line_number = 0 let g:presence_enable_line_number = 0
@ -142,8 +142,6 @@ errors: `luacheck lua`
**Please use [Conventional Commits](https://www.conventionalcommits.org/) if you want to contribute. **Please use [Conventional Commits](https://www.conventionalcommits.org/) if you want to contribute.
It makes everyones jobs easier.** It makes everyones jobs easier.**
**This project uses [StyLua](https://github.com/JohnnyMorganz/StyLua). Please format your code using StyLua for better readability**
Pull requests are very welcome, feel free to open an issue to work on Pull requests are very welcome, feel free to open an issue to work on
or message [me (@jiriks74)](https://discordapp.com/users/517810049360461837) on my or message [me (@jiriks74)](https://discordapp.com/users/517810049360461837) on my
[Discord server](https://discord.gg/cCq3qcB4jB)! [Discord server](https://discord.gg/cCq3qcB4jB)!

View file

@ -116,7 +116,7 @@ function Presence:setup(...)
-- General options -- General options
self:set_option("auto_update", 1) self:set_option("auto_update", 1)
self:set_option("client_id", "1172122807501594644") self:set_option("client_id", "793271441293967371")
self:set_option("debounce_timeout", 10) self:set_option("debounce_timeout", 10)
self:set_option("neovim_image_text", "The One True Text Editor") self:set_option("neovim_image_text", "The One True Text Editor")
self:set_option("main_image", "neovim") self:set_option("main_image", "neovim")