mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-30 12:34:37 +02:00
chore: remove fzf_colors code since PR has been merged
This commit is contained in:
parent
b74db85447
commit
9f98b0a01e
1 changed files with 0 additions and 56 deletions
|
@ -145,62 +145,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- remove when https://github.com/ibhagwan/fzf-lua/pull/1244 gets merged
|
|
||||||
{
|
|
||||||
"ibhagwan/fzf-lua",
|
|
||||||
opts = function(_, opts)
|
|
||||||
local config = require("fzf-lua.config")
|
|
||||||
if opts.fzf_colors ~= true then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- My PR that supports native colors
|
|
||||||
if config.defaults.fzf_colorscheme ~= nil then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Fallback to setting colors manually
|
|
||||||
local links = {
|
|
||||||
Normal = "FzfLuaNormal",
|
|
||||||
CursorLine = "FzfLuaCursorLine",
|
|
||||||
Match = "Special",
|
|
||||||
Info = "NonText",
|
|
||||||
Border = "FzfLuaBorder",
|
|
||||||
Gutter = "FzfLuaNormal",
|
|
||||||
Query = "FzfLuaNormal",
|
|
||||||
Prompt = "Special",
|
|
||||||
Pointer = "Special",
|
|
||||||
Marker = "FzfColorsPointer",
|
|
||||||
Spinner = "FzfColorsPointer",
|
|
||||||
Header = "FzfLuaTitle",
|
|
||||||
Scrollbar = "FzfColorsBorder",
|
|
||||||
Separator = "FzfColorsBorder",
|
|
||||||
}
|
|
||||||
for name, link in pairs(links) do
|
|
||||||
name = "FzfLuaColors" .. name
|
|
||||||
vim.api.nvim_set_hl(0, name, { link = link, default = true })
|
|
||||||
end
|
|
||||||
opts.fzf_colors = {
|
|
||||||
["fg"] = { "fg", "FzfLuaColorsNormal" },
|
|
||||||
["bg"] = { "bg", "FzfLuaColorsNormal" },
|
|
||||||
["hl"] = { "fg", "FzfLuaColorsMatch" },
|
|
||||||
["fg+"] = { "fg", "FzfLuaColorsCursorLine" },
|
|
||||||
["bg+"] = { "bg", "FzfLuaColorsCursorLine" },
|
|
||||||
["hl+"] = { "fg", "FzfLuaColorsMatch" },
|
|
||||||
["info"] = { "fg", "FzfLuaColorsInfo" },
|
|
||||||
["border"] = { "fg", "FzfLuaColorsBorder" },
|
|
||||||
["separator"] = { "fg", "FzfLuaColorsSeparator" },
|
|
||||||
["scrollbar"] = { "fg", "FzfLuaColorsScrollbar" },
|
|
||||||
["gutter"] = { "bg", "FzfLuaColorsGutter" },
|
|
||||||
["query"] = { "fg", "FzfLuaColorsQuery", "regular" },
|
|
||||||
["prompt"] = { "fg", "FzfLuaColorsPrompt" },
|
|
||||||
["pointer"] = { "fg", "FzfLuaColorsPointer" },
|
|
||||||
["marker"] = { "fg", "FzfLuaColorsMarker" },
|
|
||||||
["spinner"] = { "fg", "FzfLuaColorsSpinner" },
|
|
||||||
["header"] = { "fg", "FzfLuaColorsHeader" },
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = function()
|
opts = function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue