Closed kawre closed 11 months ago
I noticed that my problem list as well as the problem descriptions no longer have color, they're just displayed as plain text.
@BenjaminHor Does this still happen when you restart neovim?
Yes, I am currently on
branch master
commit 401582b
@BenjaminHor what is your neovim version?
NVIM v0.9.2
Build type: Release
LuaJIT 2.1.0-beta3
Can you tell me the name of the theme you are using
bluz71/vim-nightfly-colors
Can you show me your leetcode.nvim
config
return {
"kawre/leetcode.nvim",
build = ":TSUpdate html",
-- enabled = false,
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim", -- required by telescope
"MunifTanjim/nui.nvim",
-- optional
-- "nvim-tree/nvim-web-devicons",
-- recommended
"rcarriga/nvim-notify",
},
opts = {
-- configuration goes here
domain = "com", -- For now "com" is the only one supported
---@type lc.lang
lang = "python3",
---@type lc.sql_lang
sql = "mysql",
---@type string
directory = vim.fn.stdpath("data") .. "/leetcode/",
---@type boolean
logging = true,
console = {
open_on_runcode = true,
size = {
width = "50%", ---@type string | integer
height = "50%", ---@type string | integer
},
dir = "row", ---@type "col" | "row"
},
description = {
width = "40%", ---@type string | integer
},
arg = "leet",
},
config = function(_, opts)
vim.keymap.set("n", "<leader>lq", "<cmd>LcTabs<cr>")
vim.keymap.set("n", "<leader>lm", "<cmd>LcMenu<cr>")
vim.keymap.set("n", "<leader>lc", "<cmd>LcConsole<cr>")
vim.keymap.set("n", "<leader>ll", "<cmd>LcLanguage<cr>")
vim.keymap.set("n", "<leader>ld", "<cmd>LcDescriptionToggle<cr>")
vim.keymap.set("n", "<leader>lr", "<cmd>LcRun<cr>")
vim.keymap.set("n", "<leader>ls", "<cmd>LcSubmit<cr>")
vim.keymap.set("n", "<leader>lp", "<cmd>LcList<cr>")
require("leetcode").setup(opts)
end,
}
So it just randomly stopped highlighting or after some update? Does the rest of the plugin work?
The rest of the plugin works fine for me, it's just the highlighting that has stopped. It's not a big deal to be honest but I wanted to bring it up just in case.
If you boot into leetcode.nvim
and run :hi
can you find any LeetCode...
highlights?
None whatsoever whereas there are highlights for other plugins.
@BenjaminHor can you add branch = "dev"
inside leetcode.nvim
lazy config and tell me if it changed anything?
Fix is on master branch now. Let me know if it fixed your issue..
It looks good, thanks so much!
If your problem list is not loading correctly after updating
leetcode.nvim
, it's because i've updated the structure of it. To fix it either go to Menu > Cache > Update or delete.problemlist
inleetcode.nvim
home directory so it automatically gets updated next time you try to access it.