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

@ -5,7 +5,7 @@
enable = true; enable = true;
settings = { settings = {
autoEnableSources = true; autoEnableSources = true;
experimental = {ghost_text = true;}; experimental = {ghost_text = false;};
performance = { performance = {
debounce = 60; debounce = 60;
fetchingTimeout = 200; fetchingTimeout = 200;

View file

@ -1,38 +1,40 @@
_: { _: {
plugins.navic = { plugins.navic = {
enable = true; enable = true;
separator = " "; settings = {
highlight = true; separator = " ";
depthLimit = 5; highlight = true;
lsp = { depthLimit = 5;
autoAttach = true; lsp = {
}; autoAttach = true;
icons = { };
Array = "󱃵 "; icons = {
Boolean = " "; Array = "󱃵 ";
Class = " "; Boolean = " ";
Constant = " "; Class = " ";
Constructor = " "; Constant = " ";
Enum = " "; Constructor = " ";
EnumMember = " "; Enum = " ";
Event = " "; EnumMember = " ";
Field = "󰽏 "; Event = " ";
File = " "; Field = "󰽏 ";
Function = "󰡱 "; File = " ";
Interface = " "; Function = "󰡱 ";
Key = " "; Interface = " ";
Method = " "; Key = " ";
Module = "󰕳 "; Method = " ";
Namespace = " "; Module = "󰕳 ";
Null = "󰟢 "; Namespace = " ";
Number = " "; Null = "󰟢 ";
Object = " "; Number = " ";
Operator = " "; Object = " ";
Package = "󰏖 "; Operator = " ";
String = " "; Package = "󰏖 ";
Struct = " "; String = " ";
TypeParameter = " "; Struct = " ";
Variable = " "; TypeParameter = " ";
Variable = " ";
};
}; };
}; };
} }

View file

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

View file

@ -4,11 +4,11 @@ _: {
enable = true; enable = true;
settings = { settings = {
browser = "firefox"; browser = "firefox";
echo_preview_url = true; echo_preview_url = 1;
port = "6969"; port = "6969";
preview_options = { preview_options = {
disable_filename = true; disable_filename = 1;
disable_sync_scroll = true; disable_sync_scroll = 1;
sync_scroll_type = "middle"; sync_scroll_type = "middle";
}; };
theme = "dark"; theme = "dark";