mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-13 00:45:32 +00:00
Add catppuccin integration for lspsaga
This commit is contained in:
parent
ae23c34be1
commit
f294fc0b3b
3 changed files with 36 additions and 19 deletions
|
|
@ -292,6 +292,7 @@
|
||||||
|
|
||||||
- Add lint (luacheck) and formatting (stylua) support for Lua.
|
- Add lint (luacheck) and formatting (stylua) support for Lua.
|
||||||
- Add lint (markdownlint-cli2) support for Markdown.
|
- Add lint (markdownlint-cli2) support for Markdown.
|
||||||
|
- Add catppuccin integration for Lspsaga.
|
||||||
|
|
||||||
[tebuevd](https://github.com/tebuevd):
|
[tebuevd](https://github.com/tebuevd):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,19 @@
|
||||||
inherit (lib.modules) mkRemovedOptionModule;
|
inherit (lib.modules) mkRemovedOptionModule;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.nvim.types) borderType mkPluginSetupOption;
|
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 {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
|
(mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
|
||||||
|
|
@ -21,12 +34,14 @@ in {
|
||||||
options.vim.lsp.lspsaga = {
|
options.vim.lsp.lspsaga = {
|
||||||
enable = mkEnableOption "LSP Saga";
|
enable = mkEnableOption "LSP Saga";
|
||||||
|
|
||||||
setupOpts = mkPluginSetupOption "lspsaga" {
|
setupOpts =
|
||||||
|
mkPluginSetupOption "lspsaga" {
|
||||||
border_style = mkOption {
|
border_style = mkOption {
|
||||||
type = borderType;
|
type = borderType;
|
||||||
default = config.vim.ui.borders.globalStyle;
|
default = config.vim.ui.borders.globalStyle;
|
||||||
description = "Border type, see {command}`:help nvim_open_win`";
|
description = "Border type, see {command}`:help nvim_open_win`";
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
// uiKindSetupOpts;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ in {
|
||||||
fidget = true,
|
fidget = true,
|
||||||
alpha = true,
|
alpha = true,
|
||||||
leap = true,
|
leap = true,
|
||||||
|
lsp_saga = true,
|
||||||
markdown = true,
|
markdown = true,
|
||||||
noice = true,
|
noice = true,
|
||||||
notify = true, -- nvim-notify
|
notify = true, -- nvim-notify
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue