From cbe849e5d1ab46e75728c9ef4360f377fef55c38 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Wed, 17 Apr 2024 16:54:13 +0200 Subject: [PATCH] feat(assets): Setup assets --- .github/workflows/luacheck.yml | 10 - .github/workflows/stylua.yml | 16 - .gitignore | 1 - .luacheckrc | 7 - README.md | 158 +--- assets/abook.png | Bin 0 -> 33581 bytes assets/alacritty.png | Bin 0 -> 226738 bytes assets/antlr.png | Bin 0 -> 22820 bytes assets/applescript.png | Bin 0 -> 4215955 bytes assets/appveyor.png | Bin 0 -> 61587 bytes assets/arduino.png | Bin 0 -> 176920 bytes assets/autohotkey.png | Bin 0 -> 96139 bytes assets/babel.png | Bin 0 -> 70977 bytes assets/c.png | Bin 0 -> 38894 bytes assets/c_plus_plus.png | Bin 0 -> 47647 bytes assets/c_sharp.png | Bin 0 -> 48200 bytes assets/cargo.png | Bin 0 -> 185051 bytes assets/clojure.png | Bin 0 -> 76854 bytes assets/clojurescript.png | Bin 0 -> 64176 bytes assets/code.png | Bin 0 -> 39921 bytes assets/coffeescript.png | Bin 0 -> 87577 bytes assets/config.png | Bin 0 -> 39470 bytes assets/crystal.png | Bin 0 -> 55588 bytes assets/css.png | Bin 0 -> 24166 bytes assets/d.png | Bin 0 -> 309135 bytes assets/dart.png | Bin 0 -> 77298 bytes assets/database.png | Bin 0 -> 50482 bytes assets/docker.png | Bin 0 -> 40684 bytes assets/editorconfig.png | Bin 0 -> 57481 bytes assets/eiffel.png | Bin 0 -> 328143 bytes assets/elixir.png | Bin 0 -> 291496 bytes assets/elm.png | Bin 0 -> 14555 bytes assets/erlang.png | Bin 0 -> 57803 bytes assets/eslint.png | Bin 0 -> 36087 bytes assets/f_sharp.png | Bin 0 -> 49075 bytes assets/fennel.png | Bin 0 -> 64090 bytes assets/file.png | Bin 0 -> 34783 bytes assets/fish.png | Bin 0 -> 108799 bytes assets/git.png | Bin 0 -> 26063 bytes assets/gitlab.png | Bin 0 -> 40789 bytes assets/go.png | Bin 0 -> 59091 bytes assets/graphql.png | Bin 0 -> 78417 bytes assets/groovy.png | Bin 0 -> 98392 bytes assets/hack.png | Bin 0 -> 31257 bytes assets/haml.png | Bin 0 -> 68720 bytes assets/haskell.png | Bin 0 -> 38134 bytes assets/haxe.png | Bin 0 -> 70121 bytes assets/homebrew.png | Bin 0 -> 88203 bytes assets/html.png | Bin 0 -> 27377 bytes assets/idle.png | Bin 0 -> 240303 bytes assets/idris.png | Bin 0 -> 23229 bytes assets/java.png | Bin 0 -> 55220 bytes assets/javascript.png | Bin 0 -> 22199 bytes assets/jest.png | Bin 0 -> 44958 bytes assets/json.png | Bin 0 -> 23055 bytes assets/julia.png | Bin 0 -> 57807 bytes assets/jupyter.png | Bin 0 -> 50067 bytes assets/kitty.png | Bin 0 -> 61194 bytes assets/kivy.png | Bin 0 -> 16577 bytes assets/kotlin.png | Bin 0 -> 56362 bytes assets/latex.png | Bin 0 -> 170612 bytes assets/less.png | Bin 0 -> 11896 bytes assets/liquid.png | Bin 0 -> 75427 bytes assets/lisp.png | Bin 0 -> 77248 bytes assets/lua.png | Bin 0 -> 91773 bytes assets/markdown.png | Bin 0 -> 13563 bytes assets/markup.png | Bin 0 -> 17286 bytes assets/matlab.png | Bin 0 -> 88638 bytes assets/mdx.png | Bin 0 -> 17957 bytes assets/neorg.png | Bin 0 -> 90496 bytes assets/neovim.png | Bin 0 -> 516509 bytes assets/nextjs.png | Bin 0 -> 91719 bytes assets/nginx.png | Bin 0 -> 29908 bytes assets/nim.jpg | Bin 0 -> 18373 bytes assets/nix.png | Bin 0 -> 137477 bytes assets/nodejs.png | Bin 0 -> 122548 bytes assets/npm.png | Bin 0 -> 7440 bytes assets/nuxtjs.png | Bin 0 -> 24062 bytes assets/ocaml.png | Bin 0 -> 29868 bytes assets/org.png | Bin 0 -> 192883 bytes assets/perl.png | Bin 0 -> 82195 bytes assets/pgsql.png | Bin 0 -> 138083 bytes assets/php.png | Bin 0 -> 134343 bytes assets/postcss.png | Bin 0 -> 18232 bytes assets/powershell.png | Bin 0 -> 91528 bytes assets/prettier.png | Bin 0 -> 77406 bytes assets/protobuf.png | Bin 0 -> 62590 bytes assets/purescript.png | Bin 0 -> 15380 bytes assets/python.png | Bin 0 -> 76702 bytes assets/r.png | Bin 0 -> 142062 bytes assets/racket.png | Bin 0 -> 56103 bytes assets/raku.png | Bin 0 -> 154513 bytes assets/react.png | Bin 0 -> 128760 bytes assets/reason.png | Bin 0 -> 32729 bytes assets/renovate.png | Bin 0 -> 144215 bytes assets/rescript.png | Bin 0 -> 152599 bytes assets/ruby.png | Bin 0 -> 262095 bytes assets/rust.png | Bin 0 -> 67886 bytes assets/sass.png | Bin 0 -> 49513 bytes assets/scala.png | Bin 0 -> 60668 bytes assets/scheme.png | Bin 0 -> 65814 bytes assets/shell.png | Bin 0 -> 15840 bytes assets/svelte.png | Bin 0 -> 43478 bytes assets/swift.png | Bin 0 -> 96636 bytes assets/tailwind.png | Bin 0 -> 47454 bytes assets/tcl.png | Bin 0 -> 85076 bytes assets/teal.png | Bin 0 -> 120252 bytes assets/terraform.png | Bin 0 -> 15498 bytes assets/text.png | Bin 0 -> 34783 bytes assets/tmux.png | Bin 0 -> 35988 bytes assets/toml.png | Bin 0 -> 24713 bytes assets/travis.png | Bin 0 -> 107810 bytes assets/typescript.png | Bin 0 -> 51063 bytes assets/unreal.png | Bin 0 -> 112034 bytes assets/vim.png | Bin 0 -> 18615 bytes assets/visual_basic.png | Bin 0 -> 123266 bytes assets/vlang.png | Bin 0 -> 28723 bytes assets/vue.png | Bin 0 -> 67490 bytes assets/watchman.png | Bin 0 -> 69973 bytes assets/webassembly.png | Bin 0 -> 65924 bytes assets/webpack.png | Bin 0 -> 101729 bytes assets/yaml.png | Bin 0 -> 21311 bytes assets/yarn.png | Bin 0 -> 78437 bytes assets/zig.png | Bin 0 -> 59626 bytes assets/zimbu.png | Bin 0 -> 136145 bytes autoload/presence.vim | 15 - lua/deps/msgpack.lua | 553 ------------- lua/deps/serpent.lua | 265 ------ lua/deps/struct.lua | 178 ----- lua/lib/log.lua | 38 - lua/presence/discord.lua | 197 ----- lua/presence/file_assets.lua | 276 ------- lua/presence/file_explorers.lua | 10 - lua/presence/init.lua | 1285 ------------------------------ lua/presence/plugin_managers.lua | 6 - plugin/presence.vim | 7 - 136 files changed, 2 insertions(+), 3020 deletions(-) delete mode 100644 .github/workflows/luacheck.yml delete mode 100644 .github/workflows/stylua.yml delete mode 100644 .gitignore delete mode 100644 .luacheckrc create mode 100755 assets/abook.png create mode 100755 assets/alacritty.png create mode 100755 assets/antlr.png create mode 100755 assets/applescript.png create mode 100755 assets/appveyor.png create mode 100755 assets/arduino.png create mode 100755 assets/autohotkey.png create mode 100755 assets/babel.png create mode 100755 assets/c.png create mode 100755 assets/c_plus_plus.png create mode 100755 assets/c_sharp.png create mode 100755 assets/cargo.png create mode 100755 assets/clojure.png create mode 100755 assets/clojurescript.png create mode 100755 assets/code.png create mode 100755 assets/coffeescript.png create mode 100755 assets/config.png create mode 100755 assets/crystal.png create mode 100755 assets/css.png create mode 100755 assets/d.png create mode 100755 assets/dart.png create mode 100755 assets/database.png create mode 100755 assets/docker.png create mode 100755 assets/editorconfig.png create mode 100755 assets/eiffel.png create mode 100755 assets/elixir.png create mode 100755 assets/elm.png create mode 100755 assets/erlang.png create mode 100755 assets/eslint.png create mode 100755 assets/f_sharp.png create mode 100755 assets/fennel.png create mode 100755 assets/file.png create mode 100755 assets/fish.png create mode 100755 assets/git.png create mode 100755 assets/gitlab.png create mode 100755 assets/go.png create mode 100755 assets/graphql.png create mode 100755 assets/groovy.png create mode 100755 assets/hack.png create mode 100755 assets/haml.png create mode 100755 assets/haskell.png create mode 100755 assets/haxe.png create mode 100755 assets/homebrew.png create mode 100755 assets/html.png create mode 100755 assets/idle.png create mode 100755 assets/idris.png create mode 100755 assets/java.png create mode 100755 assets/javascript.png create mode 100755 assets/jest.png create mode 100755 assets/json.png create mode 100755 assets/julia.png create mode 100755 assets/jupyter.png create mode 100755 assets/kitty.png create mode 100755 assets/kivy.png create mode 100755 assets/kotlin.png create mode 100755 assets/latex.png create mode 100755 assets/less.png create mode 100755 assets/liquid.png create mode 100755 assets/lisp.png create mode 100755 assets/lua.png create mode 100755 assets/markdown.png create mode 100755 assets/markup.png create mode 100755 assets/matlab.png create mode 100755 assets/mdx.png create mode 100755 assets/neorg.png create mode 100755 assets/neovim.png create mode 100755 assets/nextjs.png create mode 100755 assets/nginx.png create mode 100755 assets/nim.jpg create mode 100755 assets/nix.png create mode 100755 assets/nodejs.png create mode 100755 assets/npm.png create mode 100755 assets/nuxtjs.png create mode 100755 assets/ocaml.png create mode 100755 assets/org.png create mode 100755 assets/perl.png create mode 100755 assets/pgsql.png create mode 100755 assets/php.png create mode 100755 assets/postcss.png create mode 100755 assets/powershell.png create mode 100755 assets/prettier.png create mode 100755 assets/protobuf.png create mode 100755 assets/purescript.png create mode 100755 assets/python.png create mode 100755 assets/r.png create mode 100755 assets/racket.png create mode 100755 assets/raku.png create mode 100755 assets/react.png create mode 100755 assets/reason.png create mode 100755 assets/renovate.png create mode 100755 assets/rescript.png create mode 100755 assets/ruby.png create mode 100755 assets/rust.png create mode 100755 assets/sass.png create mode 100755 assets/scala.png create mode 100755 assets/scheme.png create mode 100755 assets/shell.png create mode 100755 assets/svelte.png create mode 100755 assets/swift.png create mode 100755 assets/tailwind.png create mode 100755 assets/tcl.png create mode 100755 assets/teal.png create mode 100755 assets/terraform.png create mode 100755 assets/text.png create mode 100755 assets/tmux.png create mode 100755 assets/toml.png create mode 100755 assets/travis.png create mode 100755 assets/typescript.png create mode 100755 assets/unreal.png create mode 100755 assets/vim.png create mode 100755 assets/visual_basic.png create mode 100755 assets/vlang.png create mode 100755 assets/vue.png create mode 100755 assets/watchman.png create mode 100755 assets/webassembly.png create mode 100755 assets/webpack.png create mode 100755 assets/yaml.png create mode 100755 assets/yarn.png create mode 100755 assets/zig.png create mode 100755 assets/zimbu.png delete mode 100644 autoload/presence.vim delete mode 100644 lua/deps/msgpack.lua delete mode 100644 lua/deps/serpent.lua delete mode 100644 lua/deps/struct.lua delete mode 100644 lua/lib/log.lua delete mode 100644 lua/presence/discord.lua delete mode 100644 lua/presence/file_assets.lua delete mode 100644 lua/presence/file_explorers.lua delete mode 100644 lua/presence/init.lua delete mode 100644 lua/presence/plugin_managers.lua delete mode 100644 plugin/presence.vim diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml deleted file mode 100644 index 87145d9..0000000 --- a/.github/workflows/luacheck.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Luacheck -on: [push, pull_request] -jobs: - Luacheck: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Luacheck linter - uses: lunarmodules/luacheck@v1 diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml deleted file mode 100644 index fac1a50..0000000 --- a/.github/workflows/stylua.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: StyLua -on: [push, pull_request] -jobs: - StyLuacheck: - runs-on: ubuntu-latest - steps: - - name: Install StyLua from crates.io - uses: baptiste0928/cargo-install@v3 - with: - crate: stylua - version: 0.20.0 - - - name: Checkout - uses: actions/checkout@v3 - - name: Check code formatting - run: stylua -c . diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e43b0f9..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.DS_Store diff --git a/.luacheckrc b/.luacheckrc deleted file mode 100644 index 1382c67..0000000 --- a/.luacheckrc +++ /dev/null @@ -1,7 +0,0 @@ -globals = { - "vim", -} - -exclude_files = { - "lua/deps", -} diff --git a/README.md b/README.md index 912282b..0e8b542 100644 --- a/README.md +++ b/README.md @@ -3,160 +3,6 @@ This repository uses [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org) -**[Features](#features)** | **[Installation](#installation)** | -**[Configuration](#configuration)** | **[Troubleshooting](#troubleshooting)** | -**[Development](#development)** | **[Contributing](#contributing)** +## This branch is for assets file language icons, etc. -> Discord [Rich Presence](https://discord.com/rich-presence) plugin for [Neovim](https://neovim.io) - -![Presence demo](https://gist.githubusercontent.com/andweeb/df3216345530234289b87cf5080c2c60/raw/ad916fec8de921d0021801a0af877a5349621e7e/presence-demo-a.gif) - -## Features - -- Light and unobtrusive -- No Python/Node providers (or CoC) required -- Cross-platform support: macOS, nixOS, Linux[\*](#notes), -Windows, WSL -- Startup time is fast(er than other Rich Presence plugins, by -[kind of a lot](https://github.com/andweeb/presence.nvim/wiki/Plugin-Comparisons)) -- Written in Lua and [highly configurable](#configuration) in Lua -(but also configurable in VimL if you want) -- Manages Rich Presence across multiple Neovim instances in various environments -(tmux panes/windows, ssh sessions, terminal tabs/windows, etc.) -- Now with Flatpak support! - -## Installation - -Use your favorite plugin manager - -- [vim-plug](https://github.com/junegunn/vim-plug): `Plug 'jiriks74/presence.nvim'` -- [packer.nvim](https://github.com/wbthomason/packer.nvim): `use 'jiriks74/presence.nvim'` -- [lazy.nvim](https://github.com/folke/lazy.nvim): - -```lua -{ - "jiriks74/presence.nvim", - event = "UIEnter", -}, -``` - -### Notes - -- Requires [Neovim 0.5](https://github.com/neovim/neovim/releases/tag/v0.5.0) -or higher -- Rich Presence should work automatically after installation -(unless you're using WSL, in which case -[see here](https://github.com/andweeb/presence.nvim/wiki/Rich-Presence-in-WSL)) - -## Configuration - -Configuration is not necesary unless you want to override the default config. - -If you want to change the default config here are your options in Lua and VimL: - -### Lua - -Require the plugin and call `setup` with a config table with one or more of the -following keys: - -```lua --- The setup config table shows all available config options with their default values: -require("presence").setup({ - -- General options - 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 = "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(, true)`) - enable_line_number = false, -- Displays the current line number instead of the current project - blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches - buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "