Skip to content

Commit aa3f86e

Browse files
committed
add: inventory addresses
feat: add configuration syntax for the presence.nvim lua API
1 parent dd016d9 commit aa3f86e

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

.config/nvim/lua/user/packer.lua

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,30 @@ return require('packer').startup(function(use)
5959

6060

6161
-- "=====> https://github.com/andweeb/presence.nvim
62-
use ('andweeb/presence.nvim')
62+
-- use ('andweeb/presence.nvim')
63+
require("presence").setup({
64+
-- General options
65+
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
66+
neovim_image_text = ":ZZ", -- Text displayed when hovered over the Neovim image
67+
main_image = "neovim", -- Main image display (either "neovim" or "file")
68+
client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
69+
log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
70+
debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
71+
enable_line_number = false, -- Displays the current line number instead of the current project
72+
blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
73+
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
74+
file_assets = {}, -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
75+
show_time = true, -- Show the timer
76+
77+
-- Rich Presence text options
78+
editing_text = "Editing %s", -- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
79+
file_explorer_text = "Browsing %s", -- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
80+
git_commit_text = "Committing changes", -- Format string rendered when committing changes in git (either string or function(filename: string): string)
81+
plugin_manager_text = "Managing plugins", -- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
82+
reading_text = "Reading %s", -- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
83+
workspace_text = "Working on %s", -- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
84+
line_number_text = "Line %s out of %s", -- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
85+
})
6386

6487

6588
-- "=====> ncm-R for Rscripts completion

.github/.gitkeep

Whitespace-only changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This repository in specific migrates from the vimrc, used in vim, directly to th
2828

2929
To handle LSP, DAP, linters and formatters you can use [mason-nvim](https://github.com/williamboman/mason.nvim). You can also integrate its functionality with [lsp-zero](https://github.com/VonHeikemen/lsp-zero.nvim) into a not-bloated, fast [gattai-mecha](https://github.com/VonHeikemen/lsp-zero.nvim/blob/v3.x/doc/md/guides/integrate-with-mason-nvim.md) for completion.
3030

31-
To use the base configuration, run the [playbooks (wip)](), execute the [scripts (wip)](https://github.com/deomorxsy/deorice/tree/main/scripts) or do it manually:
31+
To use the base configuration, run the [playbooks](./scripts/playbooks/), execute the [scripts](./scripts/) or do it manually:
3232

3333
1. Clone this repository:
3434
```sh
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[myhosts]
2+
192.168.0.20
3+
192.168.0.27
File renamed without changes.

0 commit comments

Comments
 (0)