adds parrot to vim and statusline

This commit is contained in:
Deepak Mallubhotla 2025-03-05 21:43:06 +00:00
parent 96b2888fcc
commit ed650f3fe7
Signed by: deepak
GPG Key ID: 47831B15427F5A55
2 changed files with 16 additions and 1 deletions

View File

@ -22,6 +22,7 @@ in
pkgs.nodePackages.pyright pkgs.nodePackages.pyright
pkgs.thefuck pkgs.thefuck
pkgs.fzf
] ++ pkgs.lib.optionals specialArgs.withGUI [ ] ++ pkgs.lib.optionals specialArgs.withGUI [
pkgs.discord pkgs.discord
pkgs.obsidian pkgs.obsidian

View File

@ -1,4 +1,17 @@
-- put this at the end in case it depends on other things being configured -- 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({ require('lualine').setup({
extensions = {"fugitive", "overseer"}, extensions = {"fugitive", "overseer"},
sections = { sections = {
@ -8,7 +21,8 @@ require('lualine').setup({
"overseer", "overseer",
icons_enabled = false, icons_enabled = false,
}, },
require("nomodoro").status require("nomodoro").status,
parrot_status
}, },
lualine_x = { lualine_x = {
"encoding", "encoding",