This commit is contained in:
Zelong Kuang
2025-09-30 22:59:47 +10:00
parent 46c470d1f7
commit b5303f2cdd
28 changed files with 279 additions and 1689 deletions

View File

@@ -51,6 +51,7 @@ return {
sh = "bash",
rust = "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
r = "cd $dir && R < $filename --no-save",
typst = "cd $dir && typst compile $fileName",
},
project_path = "", -- No default path defined
project = {},

View File

@@ -2,7 +2,7 @@ return {
{
"zbirenbaum/copilot.lua",
opts = {
copilot_model = "claude-opus-4",
copilot_model = "gemini-2.5-pro",
suggestion = {
keymap = {
accept = "<D-l>",

View File

@@ -0,0 +1,12 @@
return {
{
"mfussenegger/nvim-lint",
opts = {
linters = {
markdownlint_cli2 = {
args = { "--fix", "--disable", "MD013", "--" },
},
},
},
},
}

7
lua/plugins/discord.lua Normal file
View File

@@ -0,0 +1,7 @@
return {
{
"vyfor/cord.nvim",
build = ":Cord update",
-- opts = {}
},
}

View File

@@ -40,4 +40,11 @@ return {
"evesdropper/luasnip-latex-snippets.nvim",
enabled = false,
},
{
"let-def/texpresso.vim",
lazy = false,
keys = {
{ "<localleader>lP", "<cmd>TeXpresso %<cr>", desc = "TeXpresso" },
},
},
}

View File

@@ -1,4 +0,0 @@
return {
-- { "mason-org/mason.nvim", version = "^1.0.0" },
-- { "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
}

View File

@@ -1,16 +1,32 @@
return {
-- Lazy
-- {
-- "maxmx03/solarized.nvim",
-- lazy = false,
-- priority = 1000,
-- ---@type solarized.config
-- opts = {},
-- config = function(_, opts)
-- vim.o.termguicolors = true
-- vim.o.background = "light"
-- require("solarized").setup(opts)
-- vim.cmd.colorscheme("solarized")
-- end,
-- },
{
"maxmx03/solarized.nvim",
"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,
---@type solarized.config
opts = {},
config = function(_, opts)
vim.o.termguicolors = true
-- you can set set configuration options here
config = function()
vim.g.zenbones_darken_comments = 45
vim.cmd.colorscheme("zenbones")
vim.o.background = "light"
require("solarized").setup(opts)
vim.cmd.colorscheme("solarized")
vim.o.termguicolors = true
end,
},
{
@@ -26,7 +42,7 @@ return {
{
"LazyVim/LazyVim",
opts = {
colorscheme = "solarized",
colorscheme = "zenbones",
},
},
}

View File

@@ -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 } })
local node = vim.treesitter.get_node({ bufnr = 0, pos = { row - 1, col - 1 } })
while node do
if MATH_NODES[node:type()] then
return true
@@ -88,6 +88,9 @@ end
M.in_item = function()
return M.in_env("itemize") or M.in_env("enumerate")
end
M.in_item_typst = function()
return M.in_env("itemize") or M.in_env("enum")
end
M.in_bib = function()
return M.in_env("thebibliography")
end