From e6d013c05c4b6d38659b72ce57f08a5a570d848d Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 12 Oct 2024 21:42:27 +0200 Subject: [PATCH] Neovim: Add presence --- home/modules/neovim/default.nix | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/home/modules/neovim/default.nix b/home/modules/neovim/default.nix index 8c060ea9..e1e8bd4a 100644 --- a/home/modules/neovim/default.nix +++ b/home/modules/neovim/default.nix @@ -1306,22 +1306,6 @@ in { lazy = true; }; - # TODO: Doesn't work - # _inc-rename = { - # name = "inc-rename"; - # pkg = pkgs.vimPlugins.inc-rename-nvim; - # lazy = false; - # cmd = ["IncRename"]; - # config = '' - # function(_, opts) - # require("inc_rename").setup() - # end - # ''; - # opts = { - # preview_empty_name = true; - # }; - # }; - noice = rec { name = "noice"; pkg = pkgs.vimPlugins.noice-nvim; @@ -1418,6 +1402,18 @@ in { }; }; + presence = rec { + name = "presence"; + pkg = pkgs.vimPlugins.presence-nvim; + lazy = true; + event = ["BufReadPost" "BufNewFile"]; + config = mkDefaultConfig name; + opts = { + auto_update = true; + show_time = false; + }; + }; + quickfix-reflector = { name = "quickfix-reflector"; pkg = pkgs.vimPlugins.quickfix-reflector-vim; @@ -1987,6 +1983,7 @@ in { noice # Modern UI overhaul, e.g. floating cmdline obsidian # Integration with Obsidian.md oil # File manager + presence # Discord rich presence quickfix-reflector # Make the quickfix list editable and saveable to apply changes rainbow-delimiters # Bracket/Paren colorization rustaceanvim # Rust integration