This commit is contained in:
Zelong Kuang
2025-10-05 21:01:41 +11:00
parent 485683a069
commit 4da3e1927f
8 changed files with 35 additions and 41 deletions

View File

@@ -7,6 +7,7 @@ return {
dependencies_bin = {
["tinymist"] = "tinymist",
},
invert_colors = 'always',
-- open_cmd = "brave %s --class typst-preview",
},
keys = {

View File

@@ -13,36 +13,36 @@ return {
-- vim.cmd.colorscheme("solarized")
-- end,
-- },
{
"zenbones-theme/zenbones.nvim",
-- Optionally install Lush. Allows for more configuration or extending the colorscheme
-- If you don't want to install lush, make sure to set g:zenbones_compat = 1
-- In Vim, compat mode is turned on as Lush only works in Neovim.
dependencies = "rktjmp/lush.nvim",
lazy = false,
priority = 1000,
-- you can set set configuration options here
config = function()
vim.g.zenbones_darken_comments = 45
vim.cmd.colorscheme("zenbones")
vim.o.background = "light"
vim.o.termguicolors = true
end,
},
-- {
-- "zenbones-theme/zenbones.nvim",
-- -- Optionally install Lush. Allows for more configuration or extending the colorscheme
-- -- If you don't want to install lush, make sure to set g:zenbones_compat = 1
-- -- In Vim, compat mode is turned on as Lush only works in Neovim.
-- dependencies = "rktjmp/lush.nvim",
-- lazy = false,
-- priority = 1000,
-- -- you can set set configuration options here
-- config = function()
-- vim.g.zenbones_darken_comments = 45
-- vim.cmd.colorscheme("zenbones")
-- vim.o.background = "light"
-- vim.o.termguicolors = true
-- end,
-- },
{
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
opts = {
flavour = "mocha",
-- transparent_background = true,
transparent_background = true,
},
},
-- somewhere in your config:
{
"LazyVim/LazyVim",
opts = {
colorscheme = "zenbones",
colorscheme = "catppuccin",
},
},
}

View File

@@ -47,7 +47,7 @@ end
-- For typst
M.in_mathzone_typ = function()
local row, col = unpack(vim.api.nvim_win_get_cursor(0))
local node = vim.treesitter.get_node({ bufnr = 0, pos = { row - 1, col } })
local node = vim.treesitter.get_node({ bufnr = 0, pos = { row - 1, col - 1} })
while node do
if node:type() == "math" then
return true
@@ -59,7 +59,7 @@ end
M.in_mathzone_tex = function()
local row, col = unpack(vim.api.nvim_win_get_cursor(0))
local node = vim.treesitter.get_node({ bufnr = 0, pos = { row - 1, col - 1 } })
local node = vim.treesitter.get_node({ bufnr = 0, pos = { row - 1, col - 1} })
while node do
if MATH_NODES[node:type()] then
return true