1
0
Fork 0
mirror of https://github.com/jiriks74/presence.nvim synced 2025-03-14 18:23:00 +01:00

Compare commits

..

9 commits

Author SHA1 Message Date
a76b1d74e3
fix: move to a new application id
to prevent potential issues with the original project
2023-11-09 15:57:47 +01:00
5fa130577a
fix(featreq_template): change name from Issue report to Feature request (#20) 2023-09-29 02:56:40 +02:00
dbb8f797f4
feat(featreq_template): convert from markdown to issue form (#18) 2023-09-29 02:51:28 +02:00
faa6371d23
feat(bug_template): add checks, add log formating (#16) 2023-09-29 02:41:15 +02:00
c295e1e14f
fix(formatting): Fix formatting using stylua (#11) 2023-09-29 02:14:33 +02:00
9e478c9960
fix(ci/cd-stylua): cannot contain spaces, invalid StyLua version (#15)
* fix(ci/cd-stylua): cannot contain spaces

* fix(ci/cs-stylua): invalid version number
2023-09-29 02:14:06 +02:00
e9db37bcfa
fix(ci/cd-stylua): Missing runs on, steps, names (#14)
* fix(ci/cd-luacheck): Rename job from sile to Luacheck

* fix(ci/cd-stylua): Missing runs on, steps, names
2023-09-29 02:08:42 +02:00
804f14842f
fix(ci/cd-luacheck): Rename job from sile to Luacheck (#13) 2023-09-29 02:03:51 +02:00
fb129b1de7
feat(ci/cd): add stylua action (#12)
* feat(ci/cd): add stylua action

* docs: Add StyLua disclaimer to README

* fix(ci/cd-stylua): Secret started with GITHUB_

* fix(ci/cd-stylua): Missing name, on, jobs
2023-09-29 01:57:42 +02:00
7 changed files with 110 additions and 28 deletions

View file

@ -1,47 +1,98 @@
name: Issue report
description: Report any errors, bugs, or unexpected behaviors related to presence.nvim
title: "[Bug]: "
labels: [bug]
assignees:
- jiriks74
body:
- type: markdown
attributes:
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.
- 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
attributes:
label: "Description"
description: "A short summary of the error, bug, or unexpected behavior you're facing."
validations:
required: true
- type: textarea
attributes:
label: "Neovim version"
description: "Output of `nvim --version`"
render: markdown
placeholder: |
NVIM v0.6.0-dev+209-g0603eba6e
NVIM: v0.6.0-dev+209-g0603eba6e
Build type: Release
LuaJIT 2.1.0-beta3
LuaJIT: 2.1.0-beta3
value: |
NVIM:
Build type:
LuaJIT:
validations:
required: true
- type: input
attributes:
label: "OS information"
placeholder: "macOS 12.0.1"
validations:
required: true
- type: textarea
attributes:
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: |
1. Setup presence.nvim with `require("presence"):setup({...})`
2. Run Neovim with `nvim test.txt`
3. ...
validations:
required: true
- type: textarea
attributes:
label: "Logs"
description: "The full list of `:messages` from one or more `nvim` instances"
description: "The full list of `:messages` from one or more `nvim` instances.\nPlease insert the logs into code blocks."
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:
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

@ -1,20 +0,0 @@
---
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

@ -0,0 +1,34 @@
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
on: [push, pull_request]
jobs:
sile:
Luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout

15
.github/workflows/stylua.yml vendored Normal file
View file

@ -0,0 +1,15 @@
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()`)
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")
client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
client_id = "1172122807501594644", -- 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")
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
@ -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_neovim_image_text = "The One True Text Editor"
let g:presence_main_image = "neovim"
let g:presence_client_id = "793271441293967371"
let g:presence_client_id = "1172122807501594644"
let g:presence_log_level
let g:presence_debounce_timeout = 10
let g:presence_enable_line_number = 0
@ -142,6 +142,8 @@ errors: `luacheck lua`
**Please use [Conventional Commits](https://www.conventionalcommits.org/) if you want to contribute.
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
or message [me (@jiriks74)](https://discordapp.com/users/517810049360461837) on my
[Discord server](https://discord.gg/cCq3qcB4jB)!

View file

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