mirror of
https://github.com/catppuccin/nvim
synced 2024-09-16 13:24:08 +02:00
feat: add lir.nvim and lir-git-status.nvim integration (#705)
* add appropriate types * add lir.nvim (lir-git-status.nvim) integration * add integration info to vimdocs * add info to README * chore: format --------- Co-authored-by: mrtnvgr <root@unixis.fun> Co-authored-by: Vollow <vollowx@proton.me>
This commit is contained in:
parent
e1268d1c03
commit
d3907deedf
4 changed files with 54 additions and 0 deletions
14
README.md
14
README.md
|
@ -811,6 +811,20 @@ lightspeed = false
|
|||
```
|
||||
<!-- lightspeed.nvim -->
|
||||
|
||||
<!-- lir.nvim -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <a href="https://github.com/tamago324/lir.nvim">lir.nvim</a> </td>
|
||||
<td>
|
||||
|
||||
```lua
|
||||
lir = {
|
||||
enabled = false,
|
||||
git_status = false
|
||||
}
|
||||
```
|
||||
<!-- lir.nvim -->
|
||||
|
||||
<!-- lspsaga.nvim -->
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -587,6 +587,13 @@ lightspeed.nvim>lua
|
|||
lightspeed = false
|
||||
<
|
||||
|
||||
lir.nvim>lua
|
||||
lir = {
|
||||
enabled = false,
|
||||
git_status = false
|
||||
}
|
||||
<
|
||||
|
||||
lspsaga.nvim>lua
|
||||
lsp_saga = false
|
||||
<
|
||||
|
|
26
lua/catppuccin/groups/integrations/lir.lua
Normal file
26
lua/catppuccin/groups/integrations/lir.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
local M = {}
|
||||
|
||||
function M.get()
|
||||
return vim.tbl_deep_extend("force", {}, {
|
||||
LirFloatNormal = { fg = C.text, bg = O.transparent_background and C.none or C.mantle },
|
||||
LirFloatBorder = {
|
||||
fg = O.transparent_background and C.surface1 or C.base,
|
||||
bg = O.transparent_background and C.none or C.base,
|
||||
},
|
||||
LirFloatCursorLine = { link = "CursorLine" },
|
||||
LirDir = { fg = C.blue },
|
||||
LirSymLink = { fg = C.pink },
|
||||
LirEmptyDirText = { fg = C.blue },
|
||||
LirFloatCurdirWindowNormal = { fg = C.text },
|
||||
LirFloatCurdirWindowDirName = { fg = C.lavender, style = { "bold" } },
|
||||
}, ((O.integrations.lir and O.integrations.lir.git_status) and {
|
||||
LirGitStatusBracket = { fg = C.overlay0 },
|
||||
LirGitStatusIndex = { fg = C.blue },
|
||||
LirGitStatusWorktree = { fg = C.yellow },
|
||||
LirGitStatusUnmerged = { fg = C.red },
|
||||
LirGitStatusUntracked = { fg = C.subtext0 },
|
||||
LirGitStatusIgnored = { fg = C.subtext0 },
|
||||
}) or {})
|
||||
end
|
||||
|
||||
return M
|
|
@ -159,6 +159,7 @@
|
|||
---@field indent_blankline CtpIntegrationIndentBlankline | boolean?
|
||||
---@field leap boolean?
|
||||
---@field lightspeed boolean?
|
||||
---@field lir CtpIntegrationLir | boolean?
|
||||
-- For custom Lsp kind icon and colors, adjust your `lspsaga` config:
|
||||
--
|
||||
-- ```lua
|
||||
|
@ -238,6 +239,12 @@
|
|||
-- Follow the instructions on the plugins GitHub repo to set it up.
|
||||
---@field colored_indent_levels boolean?
|
||||
|
||||
---@class CtpIntegrationLir
|
||||
-- Whether to enable the integration.
|
||||
---@field enabled boolean
|
||||
-- Sets lir-git-status.nvim highlight groups
|
||||
---@field git_status boolean
|
||||
|
||||
---@class CtpIntegrationMini
|
||||
-- Whether to enable the integration.
|
||||
---@field enabled boolean
|
||||
|
|
Loading…
Reference in a new issue