Closed zerlei closed 5 months ago
did you override treesitter config function? i hope you didnt remove our dofile code which loads ts highlights
did you override treesitter config function? i hope you didnt remove our dofile code which loads ts highlights
No, I just forked Nvchard/starter
, and added some lines in /lua/plugins/init.lua
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim",
"lua",
"html",
"css",
"javascript",
"typescript",
"tsx",
"c",
"cpp",
"markdown",
"markdown_inline",
"cmake",
},
},
},
TSInstall vue
Thank you siduck! I found out that my problem was because I added a plugin called 'rmagatti/autosession'. When I commented out this plugin, everything was fine...
{
"rmagatti/auto-session",
init = function()
require("auto-session").setup {
log_level = "error",
auto_session_enable_last_session = true,
auto_save_enabled = true,
auto_restore_enabled = true,
session_lens = {
-- If load_on_setup is set to false, one needs to eventually call `require("auto-session").setup_session_lens()` if they want to use session-lens.
buftypes_to_ignore = {}, -- list of buffer types what should not be deleted from current session
load_on_setup = true,
theme_conf = { border = true },
previewer = false,
},
}
-- todo add keymap manager
-- vim.keymap.set("n", "<leader>ss", require("auto-session.session-lens").search_session, {
-- noremap = true,
-- })
end,
},
@ZhaoYouYa yes i have faced this issue with that plugin only, either use other autosession plugins or add this in your main init.lua
dofile(vim.g.base46_cache .. "syntax")
dofile(vim.g.base46_cache .. "treesitter")
@ZhaoYouYa yes i have faced this issue with that plugin only, either use other autosession plugins or add this in your main init.lua
dofile(vim.g.base46_cache .. "syntax") dofile(vim.g.base46_cache .. "treesitter")
Thank you! I add this in my init.lua,This solves my problem
vim.schedule(function()
dofile(vim.g.base46_cache .. "syntax")
dofile(vim.g.base46_cache .. "treesitter")
end)
Describe the bug some colors display incorrect
To Reproduce Steps to reproduce the behavior:
Expected behavior colors are correct
Screenshots
https://github.com/NvChad/NvChad/assets/40014687/2cbc4a99-0726-4abc-bded-c4631a6f1d1c
Desktop (please complete the following information):