Merge branch 'main' into main

This commit is contained in:
raf 2025-07-07 13:27:47 +03:00 committed by GitHub
commit 47735a6be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 8 deletions

View file

@ -439,3 +439,4 @@
- Add [smart-splits.nvim] for navigating between Neovim windows and terminal multiplexer panes. - Add [smart-splits.nvim] for navigating between Neovim windows and terminal multiplexer panes.
Available at `vim.utility.smart-splits`. Available at `vim.utility.smart-splits`.
- Fix lualine separator options

View file

@ -57,14 +57,21 @@
signs = mkOption { signs = mkOption {
type = diagnosticType; type = diagnosticType;
default = false; default = false;
example = { example = literalExpression ''
signs.text = { signs.text = lib.generators.mkLuaInline '''
"vim.diagnostic.severity.ERROR" = "󰅚 "; {
"vim.diagnostic.severity.WARN" = "󰀪 "; [vim.diagnostic.severity.ERROR] = "󰅚 ",
}; [vim.diagnostic.severity.WARN] = "󰀪 ",
}; }
''';
'';
description = '' description = ''
Use signs for diagnostics. See {command}`:help diagnostic-signs`. Use signs for diagnostics. See {command}`:help diagnostic-signs`.
:::{.note}
The code presented in that example section uses Lua expressions as object keys which
only translate well if you use `lib.generators.mkLuaInline` as in the example.
:::
''; '';
}; };

View file

@ -63,8 +63,8 @@ in {
options = { options = {
icons_enabled = mkDefault cfg.icons.enable; icons_enabled = mkDefault cfg.icons.enable;
theme = mkDefault cfg.theme; theme = mkDefault cfg.theme;
component_separators = mkDefault [cfg.componentSeparator.left cfg.componentSeparator.right]; component_separators = mkDefault cfg.componentSeparator;
section_separators = mkDefault [cfg.sectionSeparator.left cfg.sectionSeparator.right]; section_separators = mkDefault cfg.sectionSeparator;
globalstatus = mkDefault cfg.globalStatus; globalstatus = mkDefault cfg.globalStatus;
refresh = mkDefault cfg.refresh; refresh = mkDefault cfg.refresh;
always_divide_middle = mkDefault cfg.alwaysDivideMiddle; always_divide_middle = mkDefault cfg.alwaysDivideMiddle;