Turned off lsps (because of errors) nixvim

This commit is contained in:
Aleksandr Lebedev 2024-11-21 20:36:24 +01:00
parent 2191a27a34
commit e73e0266d8
2 changed files with 14 additions and 56 deletions

View file

@ -42,14 +42,14 @@
"custom/power" "custom/power"
]; ];
battery = { battery = {
format = " {capacity}% {icon} "; format = " {time} {icon} ";
format-alt = " {time} {icon} "; format-alt = " {capacity}% {icon} ";
format-charging = " {capacity}% "; format-charging = " {capacity}% ";
format-icons = [ "" "" "" "" "" ]; format-icons = [ "" "" "" "" "" ];
format-plugged = " {capacity}% "; format-plugged = " {capacity}% ";
states = { states = {
critical = 15; critical = 10;
warning = 30; warning = 20;
}; };
}; };
clock = { clock = {

View file

@ -11,66 +11,24 @@
cmp = { cmp = {
enable = true; enable = true;
autoEnableSources = true; autoEnableSources = true;
settings = {
sources = [
{
name = "nvim_lsp";
priority = 1000;
option = {
#inherit get_bufnrs;
};
}
{
name = "nvim_lsp_signature_help";
priority = 1000;
option = {
#inherit get_bufnrs;
};
}
{
name = "nvim_lsp_document_symbol";
priority = 1000;
option = {
# inherit get_bufnrs;
};
}
{
name = "treesitter";
priority = 850;
option = {
# inherit get_bufnrs;
};
}
{
name = "buffer";
priority = 500;
option = {
# inherit get_bufnrs;
};
}
{
name = "path";
priority = 300;
}
]; };
}; };
lsp-format = { lsp-format = {
enable = true; enable = false;
}; };
lsp = { lsp = {
enable = true; enable = false;
inlayHints = true; inlayHints = true;
servers = { servers = {
nixd = { nixd = {
enable = true; enable = true;
extraOptions = { #extraOptions = {
nixos = { # nixos = {
expr = "(builtins.getFlake \"/etc/nixos\").nixosConfigurations.aurelionite.options"; # expr = "(builtins.getFlake \"/etc/nixos\").nixosConfigurations.aurelionite.options";
}; #};
home_manager = { #home_manager = {
expr = "(builtins.getFlake \"/etc/nixos\").homeConfigurations.aurelionite.options"; # expr = "(builtins.getFlake \"/etc/nixos\").homeConfigurations.aurelionite.options";
}; #};
}; #};
}; };
}; };
}; };