Skip to content

Commit

Permalink
lualine: match theme with nvim colorscheme
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Oct 14, 2024
1 parent d5b7ffc commit 4381009
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions modules/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, config, pkgs, ... }:

{
imports = [
Expand All @@ -9,6 +9,11 @@
./telescope.nix
];

assertions = [{
assertion = !config.colorschemes.kanagawa.enable && config.plugins.lualine.settings.options.theme == "kanagawa";
message = "NixVim `colorschemes.kanagawa.enable` is disabled but `plugins.lualine.settings.options.theme` is set to `kanagawa`.";
}];

extraPlugins = with pkgs.vimPlugins; [
vim-fetch # accept ./path/to/file:123 as line numbers
];
Expand Down Expand Up @@ -81,16 +86,16 @@
settings = {
options = {
globalstatus = true;
theme = "onedark";
theme = lib.mkDefault "kanagawa";
};
# https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options
sections = {
lualine_b = [ {
lualine_b = [{
sources = [ "nvim_diagnostic" "nvim_lsp" ];
} ];
lualine_c = [ {
}];
lualine_c = [{
path = 1;
} ];
}];
};
};
};
Expand Down

0 comments on commit 4381009

Please sign in to comment.