A Neovim plugin enabling you to solve LeetCode problems.
fix(theme): link
1 file changed, +3 -3
+3-3lua/leetcode/theme/default.lua
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | ---@param name string String for looking up highlight group. |
| 4 | 4 | ---@return table |
| 5 | 5 | local function hl(name) |
| 6 | - local highlight = vim.api.nvim_get_hl(0, { name = name, link = true }) | |
| 6 | + local highlight = vim.api.nvim_get_hl(0, { name = name, link = false }) | |
| 7 | 7 | setmetatable(highlight, { |
| 8 | 8 | __index = function(self, key) |
| 9 | 9 | if key == "bg" then return self.background end |
| @@ -16,8 +16,8 @@ local function hl(name) | ||
| 16 | 16 | return highlight |
| 17 | 17 | end |
| 18 | 18 | |
| 19 | ----@alias lc.Themes table<string, table> | |
| 20 | ----@type lc.Themes | |
| 19 | +---@alias lc.highlights table<string, table> | |
| 20 | +---@type lc.highlights | |
| 21 | 21 | return function() |
| 22 | 22 | return { |
| 23 | 23 | easy = { fg = "#46c6c2" }, |