From edf73c442b1afdfb2c3388e34cb8303e7592f0e4 Mon Sep 17 00:00:00 2001 From: notohh Date: Fri, 1 Nov 2024 12:19:54 -0400 Subject: [PATCH] neovim: switch to cord.nvim --- .../editors/neovim/plugins/misc/presence.nix | 35 +++++++++++++++---- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/home/programs/editors/neovim/plugins/misc/presence.nix b/home/programs/editors/neovim/plugins/misc/presence.nix index 2daf5ea..da9b401 100644 --- a/home/programs/editors/neovim/plugins/misc/presence.nix +++ b/home/programs/editors/neovim/plugins/misc/presence.nix @@ -1,9 +1,30 @@ -_: { - programs.nixvim.plugins.neocord = { - enable = true; - settings = { - auto_update = true; - enable_line_number = true; - }; +{pkgs, ...}: { + programs.nixvim = { + extraPlugins = with pkgs.vimPlugins; [ + cord-nvim + ]; + extraConfigLua = '' + require('cord').setup { + editor = { + tooltip = 'Neovim' + }, + display = { + show_time = true, + show_repository = true, + show_cursor_position = true, + }, + lsp = { + show_problem_count = true, + severity = 1, + scope = 'workspace', + }, + buttons = { + { + label = 'View Repository', + url = 'git', + }, + }, + } + ''; }; }