adds parrot to vim and statusline
This commit is contained in:
parent
96b2888fcc
commit
ed650f3fe7
@ -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
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user