adds parrot to vim and statusline
This commit is contained in:
parent
96b2888fcc
commit
ed650f3fe7
@ -22,6 +22,7 @@ in
|
||||
pkgs.nodePackages.pyright
|
||||
|
||||
pkgs.thefuck
|
||||
pkgs.fzf
|
||||
] ++ pkgs.lib.optionals specialArgs.withGUI [
|
||||
pkgs.discord
|
||||
pkgs.obsidian
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user