diff --git a/home/deepak/home.nix b/home/deepak/home.nix index f4e8cd5..a3fe70a 100644 --- a/home/deepak/home.nix +++ b/home/deepak/home.nix @@ -22,6 +22,7 @@ in pkgs.nodePackages.pyright pkgs.thefuck + pkgs.fzf ] ++ pkgs.lib.optionals specialArgs.withGUI [ pkgs.discord pkgs.obsidian diff --git a/home/deepak/neovim/lualine.lua b/home/deepak/neovim/lualine.lua index 020e93b..5c9b009 100644 --- a/home/deepak/neovim/lualine.lua +++ b/home/deepak/neovim/lualine.lua @@ -1,4 +1,17 @@ -- put this at the end in case it depends on other things being configured +-- + +local function parrot_status() + local status_info = require("parrot.config").get_status_info() + local status = "" + if status_info.is_chat then + status = status_info.prov.chat.name + else + status = status_info.prov.command.name + end + return string.format("%s(%s)", status, status_info.model) +end + require('lualine').setup({ extensions = {"fugitive", "overseer"}, sections = { @@ -8,7 +21,8 @@ require('lualine').setup({ "overseer", icons_enabled = false, }, - require("nomodoro").status + require("nomodoro").status, + parrot_status }, lualine_x = { "encoding",