patch: mix fixes (#33)

- During build time multiple warnings were shown about the deprecation
of certain options. These have been moved to their new places.
- Disable the CMP Ghost Text option because it was driving me nuts.
This commit is contained in:
Roel de Cort 2024-09-11 20:56:19 +02:00 committed by GitHub
parent 490a7bc905
commit f44000e518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 133 additions and 127 deletions

View file

@ -1,98 +1,102 @@
_: {
plugins.lualine = {
enable = true;
globalstatus = true;
extensions = [
"fzf"
"neo-tree"
];
disabledFiletypes = {
statusline = ["startup" "alpha"];
};
theme = "catppuccin";
sections = {
lualine_a = [
{
name = "mode";
icon = " ";
}
];
lualine_b = [
{
name = "branch";
icon = "";
}
{
name = "diff";
extraConfig = {
symbols = {
added = " ";
modified = " ";
removed = " ";
};
};
}
];
lualine_c = [
{
name = "diagnostics";
extraConfig = {
sources = ["nvim_lsp"];
symbols = {
error = " ";
warn = " ";
info = " ";
hint = "󰝶 ";
};
};
}
{
name = "navic";
}
];
lualine_x = [
{
name = "filetype";
extraConfig = {
icon_only = true;
separator = "";
padding = {
left = 1;
right = 0;
};
};
}
{
name = "filename";
extraConfig = {
path = 1;
};
}
{
name.__raw = ''
function()
local icon = " "
local status = require("copilot.api").status.data
return icon .. (status.message or " ")
end,
settings = {
options = {
globalstatus = true;
extensions = [
"fzf"
"neo-tree"
];
disabledFiletypes = {
statusline = ["startup" "alpha"];
};
theme = "catppuccin";
sections = {
lualine_a = [
{
name = "mode";
icon = " ";
}
];
lualine_b = [
{
name = "branch";
icon = "";
}
{
name = "diff";
extraConfig = {
symbols = {
added = " ";
modified = " ";
removed = " ";
};
};
}
];
lualine_c = [
{
name = "diagnostics";
extraConfig = {
sources = ["nvim_lsp"];
symbols = {
error = " ";
warn = " ";
info = " ";
hint = "󰝶 ";
};
};
}
{
name = "navic";
}
];
lualine_x = [
{
name = "filetype";
extraConfig = {
icon_only = true;
separator = "";
padding = {
left = 1;
right = 0;
};
};
}
{
name = "filename";
extraConfig = {
path = 1;
};
}
{
name.__raw = ''
function()
local icon = " "
local status = require("copilot.api").status.data
return icon .. (status.message or " ")
end,
cond = function()
local ok, clients = pcall(vim.lsp.get_clients, { name = "copilot", bufnr = 0 })
return ok and #clients > 0
end,
'';
}
];
lualine_y = [
{
name = "progress";
}
];
lualine_z = [
{
name = "location";
}
];
cond = function()
local ok, clients = pcall(vim.lsp.get_clients, { name = "copilot", bufnr = 0 })
return ok and #clients > 0
end,
'';
}
];
lualine_y = [
{
name = "progress";
}
];
lualine_z = [
{
name = "location";
}
];
};
};
};
};
}