mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-08 03:11:36 +00:00
Merge branch 'main' into vim-diagnostics
This commit is contained in:
commit
963af1541e
7 changed files with 66 additions and 27 deletions
|
@ -6,6 +6,19 @@
|
|||
inherit (lib.modules) mkRemovedOptionModule;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.nvim.types) borderType mkPluginSetupOption;
|
||||
inherit (lib.nvim.lua) mkLuaInline;
|
||||
|
||||
uiKindSetupOpts =
|
||||
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
||||
then {
|
||||
ui.kind =
|
||||
mkLuaInline
|
||||
# lua
|
||||
''
|
||||
require("catppuccin.groups.integrations.lsp_saga").custom_kind()
|
||||
'';
|
||||
}
|
||||
else {};
|
||||
in {
|
||||
imports = [
|
||||
(mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
|
||||
|
@ -21,12 +34,14 @@ in {
|
|||
options.vim.lsp.lspsaga = {
|
||||
enable = mkEnableOption "LSP Saga";
|
||||
|
||||
setupOpts = mkPluginSetupOption "lspsaga" {
|
||||
border_style = mkOption {
|
||||
type = borderType;
|
||||
default = config.vim.ui.borders.globalStyle;
|
||||
description = "Border type, see {command}`:help nvim_open_win`";
|
||||
};
|
||||
};
|
||||
setupOpts =
|
||||
mkPluginSetupOption "lspsaga" {
|
||||
border_style = mkOption {
|
||||
type = borderType;
|
||||
default = config.vim.ui.borders.globalStyle;
|
||||
description = "Border type, see {command}`:help nvim_open_win`";
|
||||
};
|
||||
}
|
||||
// uiKindSetupOpts;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue